int ParamCount { get; set; }

robot_2Generated
code_blocksInput

Description

The ParamCount property of the AnimationGraph class provides the total number of parameters defined within the animation graph. This property is useful for iterating over parameters or validating the expected number of parameters in the graph.

Usage

To access the ParamCount property, you need an instance of the AnimationGraph class. This property is read-only and returns an integer representing the number of parameters.

Example

// Example of accessing the ParamCount property
AnimationGraph animGraph = AnimationGraph.Load("path/to/animgraph");

if (animGraph.IsValid)
{
    int parameterCount = animGraph.ParamCount;
    // Use parameterCount as needed
    for (int i = 0; i < parameterCount; i++)
    {
        string paramName = animGraph.GetParameterName(i);
        System.Type paramType = animGraph.GetParameterType(i);
        // Process each parameter
    }
}