Summary
Ensures that the AnimationClips have the same playback length by computing
the speed of their respective AnimationClipPlayable using the average clip length.
Syntax
public FlexMotionLayer ComputeAveragedLengths(int excludedClipIndex = -1)
Parameters
Name |
Type |
Description |
excludedClipIndex |
int |
The index of the animation clip that will be excluded from the computation.
Typically used for idle animation clips as they tend to be much longer than other clips. |
Return Value
Type |
Description |
FlexMotionLayer |
The same instance of FlexMotionLayer , allowing chained method calls. |