|
static void | Complete (this Tween t) |
| Completes the tween More...
|
|
static void | Flip (this Tween t) |
| Flips the direction of this tween (backwards if it was going forward or viceversa) More...
|
|
static void | Goto (this Tween t, float to, bool andPlay=false) |
| Send the tween to the given position in time More...
|
|
static void | Kill (this Tween t) |
| Kills the tween More...
|
|
static T | Pause< T > (this T t) |
| Pauses the tween More...
|
|
static T | Play< T > (this T t) |
| Plays the tween More...
|
|
static void | PlayBackwards (this Tween t) |
| Sets the tween in a backwards direction and plays it More...
|
|
static void | PlayForward (this Tween t) |
| Sets the tween in a forward direction and plays it More...
|
|
static void | Restart (this Tween t, bool includeDelay=true) |
| Restarts the tween from the beginning More...
|
|
static void | Rewind (this Tween t, bool includeDelay=true) |
| Rewinds the tween More...
|
|
static void | TogglePause (this Tween t) |
| Plays the tween if it was paused, pauses it if it was playing More...
|
|
static YieldInstruction | WaitForCompletion (this Tween t) |
| Creates a yield instruction that waits until the tween is killed or complete. It can be used inside a coroutine as a yield. More...
|
|
static YieldInstruction | WaitForKill (this Tween t) |
| Creates a yield instruction that waits until the tween is killed. It can be used inside a coroutine as a yield. More...
|
|
static YieldInstruction | WaitForElapsedLoops (this Tween t, int elapsedLoops) |
| Creates a yield instruction that waits until the tween is killed or has gone through the given amount of loops. It can be used inside a coroutine as a yield. More...
|
|
static YieldInstruction | WaitForPosition (this Tween t, float position) |
| Creates a yield instruction that waits until the tween is killed or has reached the given position (loops included, delays excluded). It can be used inside a coroutine as a yield. More...
|
|
static Coroutine | WaitForStart (this Tween t) |
| Creates a yield instruction that waits until the tween is killed or started (meaning when the tween is set in a playing state the first time, after any eventual delay). It can be used inside a coroutine as a yield. More...
|
|
static int | CompletedLoops (this Tween t) |
| Returns the total number of loops completed by this tween More...
|
|
static float | Delay (this Tween t) |
| Returns the eventual delay set for this tween More...
|
|
static float | Duration (this Tween t, bool includeLoops=true) |
| Returns the duration of this tween (delays excluded). More...
|
|
static float | Elapsed (this Tween t, bool includeLoops=true) |
| Returns the elapsed time for this tween (delays exluded) More...
|
|
static float | ElapsedPercentage (this Tween t, bool includeLoops=true) |
| Returns the elapsed percentage (0 to 1) of this tween (delays exluded) More...
|
|
static bool | IsActive (this Tween t) |
| Returns FALSE if this tween has been killed. More...
|
|
static bool | IsBackwards (this Tween t) |
| Returns TRUE if this tween was reversed and is set to go backwards More...
|
|
static bool | IsPlaying (this Tween t) |
| Returns TRUE if this tween is playing More...
|
|
Methods that extend Tween objects and allow to control or get data from them
static bool IsActive |
( |
this Tween |
t | ) |
|
|
static |
Returns FALSE if this tween has been killed.
BEWARE: if this tween is recyclable it might have been spawned again for another use and thus return TRUE anyway.
When working with recyclable tweens you should take care to know when a tween has been killed and manually set your references to NULL. If you want to be sure your references are set to NULL when a tween is killed you can use the OnKill
callback like this:
.OnKill(()=> myTweenReference = null)