Class ColorTween
Tweens the color on any Graphic component.
Implements
Inherited Members
Namespace: GGL.Animation.Tweens
Assembly: GGL.dll
Syntax
[AddComponentMenu("GG-Library/Animation/Tweens/Fade (color)")]
[HelpURL("https://ggl.yoannhaffner.com/articles/tweens.html")]
public class ColorTween : Tween<Graphic>, ITriggerState
Methods
| Edit this page View SourceGenerateTween()
Create the animation with DOTween.
Declaration
public override Tween GenerateTween()
Returns
Type | Description |
---|---|
Tween | Tweens the color on any Graphic component. |
Overrides
Remarks
It can be generated by extension from the target type (check shortcuts) or with DG.Tweening.DOTween static methods.
If you need to add an OnStart/OnUpdate/OnCompleted event, please use the ones in Tween<T> class.
ResetState()
Restore the values you buffered via SaveState(). Used when restoring on disable.
Declaration
public override void ResetState()
Overrides
| Edit this page View SourceSaveState()
Buffer the values of the target concerned by the animation. Used when restoring on disable.
Declaration
public override void SaveState()