float Duration { get; set; }

robot_2Generated
code_blocksInput

Description

The Duration property represents the total length of the currently playing animation sequence in seconds. This property is useful for determining how long an animation will run from start to finish.

Usage

To access the Duration property, you need to have an instance of the AnimGraphDirectPlayback class. This property is read-only and provides the duration of the sequence that is currently being played.

Example

// Example of accessing the Duration property
AnimGraphDirectPlayback animPlayback = new AnimGraphDirectPlayback();
float sequenceDuration = animPlayback.Duration;

// Output the duration of the current sequence
// Note: Replace with appropriate logging or UI update
// e.g., UpdateUIWithDuration(sequenceDuration);