Method
FlexMotionAnimator.Play(AnimationClip, int)

Summary

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.