void SetAnimParameter( string name, bool value )
void SetAnimParameter( string name, float value )
void SetAnimParameter( string name, Vector3 value )
void SetAnimParameter( string name, int value )
void SetAnimParameter( string name, Rotation value )

book_4_sparkGenerated
code_blocksInput

Description

The SetAnimParameter method is used to set a boolean animation parameter for a SceneModel. This method allows you to control animation states by setting parameters that the animation graph can use to determine which animations to play or how to blend between them.

Usage

To use the SetAnimParameter method, you need to provide the name of the parameter you wish to set and the boolean value you want to assign to it. This method is typically used when you want to trigger or control animations based on certain conditions or events in your game logic.

Example

// Example of setting a boolean animation parameter
SceneModel myModel = new SceneModel();

// Set the "IsRunning" animation parameter to true
myModel.SetAnimParameter("IsRunning", true);

// Later, you might want to stop the running animation
myModel.SetAnimParameter("IsRunning", false);