Summary
Plays the specified AnimationClip
asset if there is no layer currently running with the same clip.
This is very useful if you need to continuously ensure that an animation is playing from an update method.
Returns the FlexMotionLayer
playing the animation clip.
Syntax
public FlexMotionLayer PlayOrResume(AnimationClip animationClip, int maskLayerIndex = 0)
Parameters
Name |
Type |
Description |
animationClip |
AnimationClip |
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. |