bool GetBool( string name )

robot_2Generated
code_blocksInput

Description

The GetBool method retrieves a boolean animation parameter from the SceneModel. This method is useful for checking the state of a boolean parameter within the animation graph of the model.

Usage

To use the GetBool method, you need to provide the name of the boolean parameter you wish to retrieve. The method will return true if the parameter is set to true, and false otherwise.

Example

// Example of using GetBool method
SceneModel model = new SceneModel();

// Assume 'isJumping' is a boolean parameter in the animation graph
bool isJumping = model.GetBool("isJumping");

if (isJumping)
{
    // Perform actions when the model is in a jumping state
}