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.
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.
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
}
AnimationGraph animGraph = AnimationGraph.Load("path/to/your/animation.graph"); if (animGraph.IsError) { // Handle error }