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.
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.
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 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 }