Editor.PlaybackMode
EnumEnumeration of animation playback modes.
Index
Example
// PlaybackMode is set on an AnimationClip to control how it plays.
// Use Loop for a clip that should repeat continuously.
const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const scene = model.project.scene;
const clip = Editor.createAnimationClip(scene);
clip.playbackMode = Editor.PlaybackMode.Loop;
Enumeration Members
Loop
Loop:
number
Plays the animation repeatedly from the beginning after each cycle.
PingPong
PingPong:
number
Plays the animation forward then in reverse, alternating each cycle.
Single
Single:
number
Plays the animation once and stops at the last frame.