Method chaining parameters for a Sequence. More...
Public Member Functions | |
SequenceParms | Id (string p_id) |
Sets the ID of this Sequence (default = ""). The same ID can be applied to multiple Sequences, thus allowing for group operations. You can also use IntId instead of Id for faster operations. | |
SequenceParms | IntId (int p_intId) |
Sets the int ID of this Tweener (default = 0). The same intId can be applied to multiple Tweeners, thus allowing for group operations. The main difference from Id is that while Id is more legible, IntId allows for faster operations. | |
SequenceParms | AutoKill (bool p_active) |
Sets auto-kill behaviour for when the Sequence reaches its end (default = false ). | |
SequenceParms | UpdateType (UpdateType p_updateType) |
Sets the type of update to use for this Sequence (default = UpdateType.Update ). | |
SequenceParms | TimeScale (float p_timeScale) |
Sets the time scale that will be used by this Sequence. | |
SequenceParms | Loops (int p_loops) |
Sets the number of times the Sequence will run (default = 1 , meaning only one go and no other loops). | |
SequenceParms | Loops (int p_loops, LoopType p_loopType) |
Sets the number of times the Sequence will run, and the type of loop behaviour to apply (default = 1 , LoopType.Restart ). | |
SequenceParms | OnStart (TweenDelegate.TweenCallback p_function) |
Function to call when the Sequence is started for the very first time. | |
SequenceParms | OnStart (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call when the Sequence is started for the very first time. | |
SequenceParms | OnUpdate (TweenDelegate.TweenCallback p_function) |
Function to call each time the Sequence is updated. | |
SequenceParms | OnUpdate (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call each time the Sequence is updated. | |
SequenceParms | OnPause (TweenDelegate.TweenCallback p_function) |
Function to call when the Sequence switches from a playing state to a paused state. | |
SequenceParms | OnPause (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call when the Sequence switches from a playing state to a paused state. | |
SequenceParms | OnPlay (TweenDelegate.TweenCallback p_function) |
Function to call when the Sequence switches from a paused state to a playing state. | |
SequenceParms | OnPlay (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call when the Sequence switches from a paused state to a playing state. | |
SequenceParms | OnRewinded (TweenDelegate.TweenCallback p_function) |
Function to call each time the sequence is rewinded from a non-rewinded state (either because of a direct call to Rewind, or because the tween's virtual playehead reached the start due to a playing backwards behaviour). | |
SequenceParms | OnRewinded (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call each time the sequence is rewinded from a non-rewinded state (either because of a direct call to Rewind, or because the tween's virtual playehead reached the start due to a playing backwards behaviour). | |
SequenceParms | OnStepComplete (TweenDelegate.TweenCallback p_function) |
Function to call each time a single loop of the Sequence is completed. | |
SequenceParms | OnStepComplete (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call each time a single loop of the Sequence is completed. | |
SequenceParms | OnStepComplete (GameObject p_sendMessageTarget, string p_methodName, object p_value=null, SendMessageOptions p_options=SendMessageOptions.RequireReceiver) |
Uses sendMessage to call the method named p_methodName on every MonoBehaviour in the p_sendMessageTarget GameObject. | |
SequenceParms | OnComplete (TweenDelegate.TweenCallback p_function) |
Function to call when the full Sequence, loops included, is completed. | |
SequenceParms | OnComplete (TweenDelegate.TweenCallbackWParms p_function, params object[] p_funcParms) |
Function to call when the full Sequence, loops included, is completed. | |
SequenceParms | OnComplete (GameObject p_sendMessageTarget, string p_methodName, object p_value=null, SendMessageOptions p_options=SendMessageOptions.RequireReceiver) |
Uses sendMessage to call the method named p_methodName on every MonoBehaviour in the p_sendMessageTarget GameObject. | |
SequenceParms | KeepEnabled (Behaviour p_target) |
Keeps the given component enabled while the tween is playing. | |
SequenceParms | KeepEnabled (GameObject p_target) |
Keeps the given gameObject activated while the tween is playing. | |
SequenceParms | KeepEnabled (Behaviour[] p_targets) |
Keeps the given components enabled while the tween is playing. | |
SequenceParms | KeepEnabled (GameObject[] p_targets) |
Keeps the given GameObject activated while the tween is playing. | |
SequenceParms | KeepDisabled (Behaviour p_target) |
Keeps the given component disabled while the tween is playing. | |
SequenceParms | KeepDisabled (GameObject p_target) |
Keeps the given GameObject disabled while the tween is playing. | |
SequenceParms | KeepDisabled (Behaviour[] p_targets) |
Keeps the given components disabled while the tween is playing. | |
SequenceParms | KeepDisabled (GameObject[] p_targets) |
Keeps the given GameObject disabled while the tween is playing. |
Method chaining parameters for a Sequence.
SequenceParms AutoKill | ( | bool | p_active | ) |
Sets auto-kill behaviour for when the Sequence reaches its end (default = false
).
SequenceParms Id | ( | string | p_id | ) |
SequenceParms IntId | ( | int | p_intId | ) |
SequenceParms KeepDisabled | ( | Behaviour | p_target | ) |
Keeps the given component disabled while the tween is playing.
SequenceParms KeepDisabled | ( | GameObject | p_target | ) |
Keeps the given GameObject disabled while the tween is playing.
SequenceParms KeepDisabled | ( | Behaviour[] | p_targets | ) |
Keeps the given components disabled while the tween is playing.
SequenceParms KeepDisabled | ( | GameObject[] | p_targets | ) |
Keeps the given GameObject disabled while the tween is playing.
SequenceParms KeepEnabled | ( | Behaviour | p_target | ) |
Keeps the given component enabled while the tween is playing.
SequenceParms KeepEnabled | ( | GameObject | p_target | ) |
Keeps the given gameObject activated while the tween is playing.
SequenceParms KeepEnabled | ( | Behaviour[] | p_targets | ) |
Keeps the given components enabled while the tween is playing.
SequenceParms KeepEnabled | ( | GameObject[] | p_targets | ) |
Keeps the given GameObject activated while the tween is playing.
SequenceParms Loops | ( | int | p_loops | ) |
Sets the number of times the Sequence will run (default = 1
, meaning only one go and no other loops).
p_loops | Number of loops (set it to -1 or float.PositiveInfinity to apply infinite loops). |
SequenceParms Loops | ( | int | p_loops, |
LoopType | p_loopType | ||
) |
Sets the number of times the Sequence will run, and the type of loop behaviour to apply (default = 1
, LoopType.Restart
).
p_loops | Number of loops (set it to -1 or float.PositiveInfinity to apply infinite loops). |
p_loopType | The LoopType behaviour to use. Note the LoopType.Incremental is available, but as an experimental feature. It works with simple Sequences, but you should check that your animation works as intended with more complex Sequences. |
SequenceParms OnComplete | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call when the full Sequence, loops included, is completed.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnComplete | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call when the full Sequence, loops included, is completed.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnComplete | ( | GameObject | p_sendMessageTarget, |
string | p_methodName, | ||
object | p_value = null , |
||
SendMessageOptions | p_options = SendMessageOptions.RequireReceiver |
||
) |
Uses sendMessage to call the method named p_methodName on every MonoBehaviour in the p_sendMessageTarget GameObject.
p_sendMessageTarget | GameObject to target for sendMessage |
p_methodName | Name of the method to call |
p_value | Eventual additional parameter |
p_options | SendMessageOptions |
SequenceParms OnPause | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call when the Sequence switches from a playing state to a paused state.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnPause | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call when the Sequence switches from a playing state to a paused state.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnPlay | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call when the Sequence switches from a paused state to a playing state.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnPlay | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call when the Sequence switches from a paused state to a playing state.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnRewinded | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call each time the sequence is rewinded from a non-rewinded state (either because of a direct call to Rewind, or because the tween's virtual playehead reached the start due to a playing backwards behaviour).
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnRewinded | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call each time the sequence is rewinded from a non-rewinded state (either because of a direct call to Rewind, or because the tween's virtual playehead reached the start due to a playing backwards behaviour).
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnStart | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call when the Sequence is started for the very first time.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnStart | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call when the Sequence is started for the very first time.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnStepComplete | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call each time a single loop of the Sequence is completed.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnStepComplete | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call each time a single loop of the Sequence is completed.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms OnStepComplete | ( | GameObject | p_sendMessageTarget, |
string | p_methodName, | ||
object | p_value = null , |
||
SendMessageOptions | p_options = SendMessageOptions.RequireReceiver |
||
) |
Uses sendMessage to call the method named p_methodName on every MonoBehaviour in the p_sendMessageTarget GameObject.
p_sendMessageTarget | GameObject to target for sendMessage |
p_methodName | Name of the method to call |
p_value | Eventual additional parameter |
p_options | SendMessageOptions |
SequenceParms OnUpdate | ( | TweenDelegate.TweenCallback | p_function | ) |
Function to call each time the Sequence is updated.
p_function | The function to call, who must return void and accept no parameters. |
SequenceParms OnUpdate | ( | TweenDelegate.TweenCallbackWParms | p_function, |
params object[] | p_funcParms | ||
) |
Function to call each time the Sequence is updated.
p_function | The function to call. It must return void and has to accept a single parameter of type TweenEvent. |
p_funcParms | Additional comma separated parameters to pass to the function. |
SequenceParms TimeScale | ( | float | p_timeScale | ) |
Sets the time scale that will be used by this Sequence.
p_timeScale | The time scale to use. |
SequenceParms UpdateType | ( | UpdateType | p_updateType | ) |
Sets the type of update to use for this Sequence (default = UpdateType.Update
).
p_updateType | The type of update to use. |