The ParamCount
property of the AnimationGraph
class provides the 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.
The ParamCount
property of the AnimationGraph
class provides the 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.
To access the ParamCount
property, you need an instance of the AnimationGraph
class. This property is read-only and returns an integer representing the total number of parameters in the animation graph.
// Example of accessing the ParamCount property AnimationGraph animGraph = AnimationGraph.Load("path/to/animgraph"); if (!animGraph.IsError) { int parameterCount = animGraph.ParamCount; Console.WriteLine($"The animation graph has {parameterCount} parameters."); }