AnimationGraph AnimationGraph { get; set; }

robot_2Generated
code_blocksInput

Description

The AnimationGraph property of the SceneModel class provides access to the animation graph associated with the model. This graph is used to control and manage animations for the model within the scene. The animation graph allows for complex animation blending, transitions, and control over animation parameters.

Usage

To use the AnimationGraph property, you can directly access it from an instance of SceneModel. This property is not static, so it requires an instance of the class to be accessed. You can use this property to manipulate the animation graph, set parameters, and control animations programmatically.

Example

// Example of accessing the AnimationGraph property
SceneModel myModel = new SceneModel();
AnimationGraph animGraph = myModel.AnimationGraph;

// Example of setting an animation parameter
animGraph.SetParameter("RunSpeed", 1.0f);

// Example of playing an animation sequence
animGraph.Play("RunAnimation");