void SetAnimGraph( string name )

robot_2Generated
code_blocksInput

Description

The SetAnimGraph method is used to set the animation graph for a SceneModel object. However, this method is marked as obsolete, and it is recommended to use the AnimationGraph property directly instead.

Usage

To set an animation graph for a SceneModel, you should directly assign the desired AnimationGraph to the AnimationGraph property of the SceneModel instance. Avoid using this method as it is deprecated.

Example

// Example of setting an animation graph using the recommended approach
SceneModel model = new SceneModel();
AnimationGraph animGraph = new AnimationGraph();

// Directly set the animation graph
model.AnimationGraph = animGraph;