Enumeration of animation playback modes.
// 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; Copy
// 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;
Plays the animation repeatedly from the beginning after each cycle.
Plays the animation forward then in reverse, alternating each cycle.
Plays the animation once and stops at the last frame.
Enumeration of animation playback modes.
Example