Class TintTween
- Namespace
- Fallencake.UI
- Assembly
- Fallencake.UI.dll
[Serializable]
public class TintTween : TweenBase<Graphic, Color>, ITargetableTween<Graphic, Color>, ITween
- Inheritance
-
objectTintTween
- Implements
- 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
targetGraphicstartValueColorendValueColordurationfloatdelayfloatuseCurrentColorAsStartbooleaseAnimationCurve
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
coroutineHolderMonoBehaviourMonoBehaviour used to start/stop coroutines.
isForwardboolIf true plays towards EndValue, otherwise towards StartValue.
ResetTarget()
Implemented by concrete tweens to restore target to its initial state.
protected override void ResetTarget()