Sequine - Scripting API
|
Runs and manages a single Tween. More...
Public Member Functions | |
delegate void | TweenUpdateCallback (float t) |
delegate void | FloatTweenUpdateCallback (float value) |
Tween () | |
Tween (float _duration=1f, bool _timescaleIndependent=false, EasingFunction.Ease _easing=EasingFunction.Ease.EaseInOutQuad) | |
Coroutine | RunTween (TweenUpdateCallback _onUpdate, Action _onComplete=null, float _overrideDuration=-1) |
Runs a tween. More... | |
Coroutine | RunFloatTween (float _valueFrom, float _valueTo, FloatTweenUpdateCallback _onUpdate, Action _onComplete=null, float _overrideDuration=-1) |
Runs a float tween from a From to a To value. More... | |
IEnumerator | RunTweenCoroutine (TweenUpdateCallback _onUpdate, Action _onComplete, float _overrideDuration=-1) |
void | Kill () |
Static Public Member Functions | |
static void | CancelTween (Coroutine _coroutineHandle) |
Public Attributes | |
float | duration = 1f |
bool | timescaleIndependent |
EasingFunction.Ease | easing = EasingFunction.Ease.EaseInOutQuad |
Runs and manages a single Tween.
Calcatz.Sequine.Tween.Tween | ( | ) |
Calcatz.Sequine.Tween.Tween | ( | float | _duration = 1f , |
bool | _timescaleIndependent = false , |
||
EasingFunction.Ease | _easing = EasingFunction.Ease.EaseInOutQuad |
||
) |
|
static |
delegate void Calcatz.Sequine.Tween.FloatTweenUpdateCallback | ( | float | value | ) |
void Calcatz.Sequine.Tween.Kill | ( | ) |
Coroutine Calcatz.Sequine.Tween.RunFloatTween | ( | float | _valueFrom, |
float | _valueTo, | ||
FloatTweenUpdateCallback | _onUpdate, | ||
Action | _onComplete = null , |
||
float | _overrideDuration = -1 |
||
) |
Runs a float tween from a From to a To value.
_valueFrom | |
_valueTo | |
_onUpdate | |
_onComplete | |
_overrideDuration |
Coroutine Calcatz.Sequine.Tween.RunTween | ( | TweenUpdateCallback | _onUpdate, |
Action | _onComplete = null , |
||
float | _overrideDuration = -1 |
||
) |
Runs a tween.
_cancelTracker | Any reference object. This object will be used as the unique identifier for the CancelTween method. |
_onUpdate | t is the interpolation value from 0 to 1. |
_onComplete | |
_overrideDuration |
IEnumerator Calcatz.Sequine.Tween.RunTweenCoroutine | ( | TweenUpdateCallback | _onUpdate, |
Action | _onComplete, | ||
float | _overrideDuration = -1 |
||
) |
delegate void Calcatz.Sequine.Tween.TweenUpdateCallback | ( | float | t | ) |
float Calcatz.Sequine.Tween.duration = 1f |
EasingFunction.Ease Calcatz.Sequine.Tween.easing = EasingFunction.Ease.EaseInOutQuad |
bool Calcatz.Sequine.Tween.timescaleIndependent |