bool IsError { get; set; }

robot_2Generated
code_blocksInput

Description

The IsError property of the AnimationGraph class indicates whether the animation graph is currently invalid or has not yet been loaded. This property is useful for checking the state of the animation graph to ensure it is ready for use.

Usage

To use the IsError property, simply access it on an instance of the AnimationGraph class. It returns a bool value, where true indicates that the animation graph is either invalid or not loaded, and false indicates that it is valid and ready for use.

Example

// Example of checking the IsError property
AnimationGraph animGraph = AnimationGraph.Load("path/to/animation.graph");

if (animGraph.IsError)
{
    // Handle the error, such as logging or attempting to reload
    Log.Warning("Animation graph is invalid or not loaded.");
}
else
{
    // Proceed with using the animation graph
    Log.Info("Animation graph is valid and ready to use.");
}