Summary
Plays the specified AnimationClip and returns the FlexMotionLayer that will be playing the contained animation clips.
Syntax
public FlexMotionLayer Play(AnimationClip animationClip, int maskLayerIndex = 0)
Parameters
| Name |
Type |
Description |
| animationClip |
AnimationClip |
The AnimationClip asset to play. |
| maskLayerIndex |
int |
The mask layer index to be used. Default value is 0. |
Return Value
| Type |
Description |
| FlexMotionLayer |
The FlexMotionLayer that will play the animation clips.
If no layer could be found or created a special null layer will be returned.
Any attempt to interact with it will fail silently. |