static AnimationGraph Load( string filename )

book_4_sparkGenerated
code_blocksInput

Description

The Load method is a static function of the AnimationGraph class in the Sandbox API. It is used to load an animation graph from a specified file. This method returns an instance of AnimationGraph that represents the loaded animation graph.

Usage

To use the Load method, call it with the filename of the animation graph you wish to load. Ensure that the file path is correct and accessible by the application.

Example usage:

AnimationGraph animGraph = AnimationGraph.Load("path/to/your/animation.graph");
if (animGraph.IsError)
{
    // Handle error
}

Example

AnimationGraph animGraph = AnimationGraph.Load("path/to/your/animation.graph");
if (animGraph.IsError)
{
    // Handle error
}