Method
FlexMotionAnimator.TryGetLayer(object, FlexMotionLayer, int)

Summary

Syntax

public bool TryGetLayer(object animationAsset, out FlexMotionLayer motionLayer, int maskLayerIndex = 0)

Parameters

Name Type Description
animationAsset object The animation asset to search for. Typically an FlexMotion asset or an AnimationClip.
motionLayer FlexMotionLayer The FlexMotionLayer that is found (or null if not found).
maskLayerIndex int The mask layer index to search for (optional, default is 0).

Return Value

Type Description
bool True if the FlexMotionLayer is found, false otherwise.