AnimationSequence CurrentSequence { get; set; }

robot_2Generated
code_blocksInput

Description

The CurrentSequence property of the SceneModel class allows for the direct playback of animation sequences, bypassing the need for an animation graph. This is particularly useful when you want to play a specific sequence without the overhead of setting up an animation graph. To use this property effectively, ensure that the UseAnimGraph property is set to false if the scene model has an animation graph.

Usage

To use the CurrentSequence property, first ensure that the UseAnimGraph property is disabled. Then, assign an AnimationSequence to CurrentSequence to start playback.

Example

// Example of setting the CurrentSequence property
SceneModel model = new SceneModel();
model.UseAnimGraph = false; // Disable anim graph to use direct sequence playback
model.CurrentSequence = someAnimationSequence; // Assign an AnimationSequence to play