Summary
Plays the specified FlexMotion
asset if there is no layer currently running with the same animation clips.
This is very useful if you need to continuously ensure that an animation is playing from an update method.
Returns the FlexMotionLayer
playing that FlexMotion asset.
Syntax
public FlexMotionLayer PlayOrResume(FlexMotion flexMotion, int maskLayerIndex = 0)
Parameters
Name |
Type |
Description |
flexMotion |
FlexMotion |
The FlexMotion asset containing animation clips to be played or resumed. |
maskLayerIndex |
int |
The mask layer index to be used. Default value is 0. |
Return Value
Type |
Description |
FlexMotionLayer |
Returns the played or resumed FlexMotionLayer. |