Table of Contents

Class TintTween

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll
[Serializable]
public class TintTween : TweenBase<Graphic, Color>, ITargetableTween<Graphic, Color>, ITween
Inheritance
object
TweenBase<Graphic, Color>
TintTween
Implements
ITargetableTween<Graphic, Color>
Inherited Members

Constructors

TintTween()

public TintTween()

TintTween(Graphic, Color, Color, float, float, bool, AnimationCurve)

public TintTween(Graphic target, Color startValue, Color endValue, float duration, float delay, bool useCurrentColorAsStart = false, AnimationCurve ease = null)

Parameters

target Graphic
startValue Color
endValue Color
duration float
delay float
useCurrentColorAsStart bool
ease AnimationCurve

Properties

UseCurrentColorAsStart

public bool UseCurrentColorAsStart { get; set; }

Property Value

bool

Methods

ApplyEndValueInstant()

Instantly applies the end value to the target without animation.

protected override void ApplyEndValueInstant()

Play(MonoBehaviour, bool)

Plays the tween on a coroutine holder. Implementations should start a coroutine and call OnComplete() when finished.

public override void Play(MonoBehaviour coroutineHolder, bool isForward = true)

Parameters

coroutineHolder MonoBehaviour

MonoBehaviour used to start/stop coroutines.

isForward bool

If true plays towards EndValue, otherwise towards StartValue.

ResetTarget()

Implemented by concrete tweens to restore target to its initial state.

protected override void ResetTarget()