AnimationClip.PostInfinity
Lens Studio v1.5.0+
Description
Used by AnimationMixerLayer for setting animation looping behavior.
Enum Value | Description |
---|---|
AnimationClip.PostInfinity.Cycle |
The animation will restart from the beginning each time it loops. |
AnimationClip.PostInfinity.Oscillate |
The animation will switch between normal and reverse playback each time it loops. |
Examples
// Set an AnimationMixerLayer to oscillate when looping
//@input Component.AnimationMixer mixer
var layer = script.mixer.getLayers()[0];
layer.postInfinity = AnimationClip.PostInfinity.Oscillate;
Still Looking for help?
Visit Support