string Name { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Name property of the AnimationGraph class represents the file name of the animation graph. This property is used to identify the specific animation graph file associated with an instance of AnimationGraph.

Usage

To access the Name property, you need to have an instance of the AnimationGraph class. This property is read-only and returns a string representing the file name of the animation graph.

Example

// Example of accessing the Name property of an AnimationGraph instance

// Load an animation graph from a file
AnimationGraph animGraph = AnimationGraph.Load("path/to/animation.graph");

// Check if the animation graph is valid
if (animGraph.IsValid)
{
    // Access the Name property
    string graphName = animGraph.Name;
    // Output the name of the animation graph
    // Note: Use a logging system or UI element to display the name
    // e.g., Log.Info($"Animation Graph Name: {graphName}");
}