Method | Description | |
---|---|---|
getId ( ) : int |
gets the id which can be used to stop the tween later
|
|
next ( |
adds a tween that will start as soon as this tween completes
|
|
next ( |
adds a custom action tween that will start as soon as the current tween completes
|
|
next ( TweenType tweenType, float duration, Vector3 targetVector, bool isRelativeTween = false ) : Tween |
adds a tween that will start as soon as this tween completes
|
|
next ( float duration, float>.Action |
adds a custom action tween using this tween's Transform that will start as soon as the current tween completes
|
|
next ( float duration, Color targetColor ) : Tween |
adds a color tween using this tween's Transform and type that will start as soon as this completes
|
|
next ( float duration, Color targetColor, string materialProperty, bool isRelativeTween = false ) : Tween |
adds a color tween using this tween's Transform that will start as soon as this completes
|
|
next ( float duration, ITweenable newPropertyTween ) : Tween |
adds a property tween that will start as soon as the current tween completes
|
|
next ( float duration, Vector3 targetVector, float delay ) : Tween |
adds a vector tween using this tween's Transform and type that will start as soon as this completes
|
|
next ( float duration, Vector3 targetVector, float delay, Func |
adds a vector tween using this tween's Transform and type that will start as soon as this completes
|
|
reverseTween ( ) : void |
reverses the current tween. if it was going forward it will be going backwards and vice versa.
|
|
setAnimationCurve ( |
||
setCompletionHandler ( Action |
chainable. sets the action that should be called when the tween is complete. do not store a reference to the tween!
|
|
setDelay ( float delay ) : Tween |
chainable. sets the delay for the tween.
|
|
setEaseType ( EaseType easeType ) : Tween |
chainable. Sets the EaseType used by the tween.
|
|
setLoopCompletionHandler ( Action |
chainable. sets the action that should be called when a loop is complete. A loop is either when the first part of a ping-pong animation completes or when starting over when using a restart-from-beginning loop type. Note that ping-pong loops (which are really two part tweens) will not fire the loop completion handler on the last iteration. The normal tween completion handler will fire though
|
|
setLoopType ( LoopType loopType, int loops = 1, float delayBetweenLoops = 0f ) : Tween |
chainable. set the loop type for the tween. a single pingpong loop means going from start-finish-start.
|
|
setTimeScaleIndependent ( ) : Tween |
sets the tween to be time scale independent
|
Method | Description | |
---|---|---|
handleLooping ( ) : void |
handles loop logic
|
|
prepareForUse ( ) : void |
sets the appropriate start value and calculates the diffValue
|
|
reset ( ) : void | ||
setVectorAsRequiredPerCurrentTweenType ( Vector3 &vec ) : void |
if we have an appropriate tween type that takes a vector value this will correctly set it
|
|
tick ( bool completeTweenThisStep = false ) : bool |
handles the tween. returns true if it is complete and ready for removal
|
public next ( |
||
trans | ||
tweenType | TweenType | |
duration | float | |
targetVector | Vector3 | |
isRelativeTween | bool | |
return | Tween |
public next ( |
||
trans | ||
duration | float | |
action | float>.Action | |
return | Tween |
public next ( TweenType tweenType, float duration, Vector3 targetVector, bool isRelativeTween = false ) : Tween | ||
tweenType | TweenType | |
duration | float | |
targetVector | Vector3 | |
isRelativeTween | bool | |
return | Tween |
public next ( float duration, float>.Action |
||
duration | float | |
action | float>.Action | |
return | Tween |
public next ( float duration, Color targetColor ) : Tween | ||
duration | float | |
targetColor | Color | |
return | Tween |
public next ( float duration, Color targetColor, string materialProperty, bool isRelativeTween = false ) : Tween | ||
duration | float | |
targetColor | Color | |
materialProperty | string | |
isRelativeTween | bool | |
return | Tween |
public next ( float duration, ITweenable newPropertyTween ) : Tween | ||
duration | float | |
newPropertyTween | ITweenable | |
return | Tween |
public next ( float duration, Vector3 targetVector, float delay ) : Tween | ||
duration | float | |
targetVector | Vector3 | |
delay | float | |
return | Tween |
public next ( float duration, Vector3 targetVector, float delay, Func |
||
duration | float | |
targetVector | Vector3 | |
delay | float | |
easeFunction | Func |
|
isRelativeTween | bool | |
return | Tween |
public setAnimationCurve ( |
||
animCurve | ||
return | Tween |
public setCompletionHandler ( Action |
||
onComplete | Action |
|
return | Tween |
public setEaseType ( EaseType easeType ) : Tween | ||
easeType | EaseType | |
return | Tween |
public setLoopCompletionHandler ( Action |
||
onLoopComplete | Action |
|
return | Tween |
public setLoopType ( LoopType loopType, int loops = 1, float delayBetweenLoops = 0f ) : Tween | ||
loopType | LoopType | |
loops | int | |
delayBetweenLoops | float | |
return | Tween |