Summary
Plays the specified FlexMotion asset and returns the FlexMotionLayer that will be playing the contained animation clips.
Syntax
public FlexMotionLayer Play(FlexMotion flexMotion, int maskLayerIndex = 0)
Parameters
| Name |
Type |
Description |
| flexMotion |
FlexMotion |
The FlexMotion asset containing animation clips 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. |