string GetParameterName( int index )

book_4_sparkGenerated
code_blocksInput

Description

The GetParameterName method retrieves the name of a parameter in the animation graph based on its index. This method is useful for accessing parameter names dynamically when working with animation graphs in the Sandbox environment.

Usage

To use the GetParameterName method, you need to have an instance of the AnimationGraph class. Call the method with the index of the parameter you want to retrieve the name for. Ensure that the index is within the valid range, i.e., between 0 and ParamCount - 1.

Example

// Example of using GetParameterName
AnimationGraph animGraph = new AnimationGraph();
int parameterIndex = 0;

// Ensure the index is within the valid range
if (parameterIndex >= 0 && parameterIndex < animGraph.ParamCount)
{
    string parameterName = animGraph.GetParameterName(parameterIndex);
    // Use the parameter name as needed
    // e.g., logging, debugging, or further processing
}