Table of Contents

Class FadeTween

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll
[Serializable]
public class FadeTween : TweenBase<Component, float>, ITargetableTween<Component, float>, ITween
Inheritance
object
TweenBase<Component, float>
FadeTween
Implements
ITargetableTween<Component, float>
Inherited Members

Constructors

FadeTween()

public FadeTween()

FadeTween(CanvasGroup, float, float, float, float, AnimationCurve)

public FadeTween(CanvasGroup target, float startValue, float endValue, float duration, float delay, AnimationCurve ease = null)

Parameters

target CanvasGroup
startValue float
endValue float
duration float
delay float
ease AnimationCurve

FadeTween(Graphic, float, float, float, float, AnimationCurve)

public FadeTween(Graphic target, float startValue, float endValue, float duration, float delay, AnimationCurve ease = null)

Parameters

target Graphic
startValue float
endValue float
duration float
delay float
ease AnimationCurve

Properties

TargetType

Type of the target component for fade animation

public FadeTargetType TargetType { get; set; }

Property Value

FadeTargetType

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()