bool UseAnimGraph { get; set; }

robot_2Generated
code_blocksInput

Description

The UseAnimGraph property of the SceneModel class determines whether the scene model should utilize the animation graph for animations or play sequences directly. When set to false, the model can bypass the animation graph and directly play sequences, which can be useful for specific animation control scenarios.

Usage

To use the UseAnimGraph property, simply set it to true or false depending on whether you want the scene model to use the animation graph or not. This property is particularly useful when you need to control animations directly without the overhead of an animation graph.

Example

// Example of setting the UseAnimGraph property
SceneModel myModel = new SceneModel();

// Disable the use of the animation graph
myModel.UseAnimGraph = false;

// Now you can play sequences directly on myModel
myModel.CurrentSequence = someAnimationSequence;