int AnimationCount { get; set; }

robot_2Generated
code_blocksInput

Description

The AnimationCount property provides the number of animations that can be used within the AnimGraphDirectPlayback class. This property is marked as obsolete, and it is recommended to use the Sequences property instead.

Usage

To access the number of animations available, you can use the AnimationCount property. However, since this property is obsolete, consider using the Sequences property for a more up-to-date approach.

Example

// Example of accessing the AnimationCount property
AnimGraphDirectPlayback animGraph = new AnimGraphDirectPlayback();
int count = animGraph.AnimationCount;

// Note: It is recommended to use the Sequences property instead
var sequences = animGraph.Sequences;
int sequenceCount = sequences.Count;