float Duration { get; set; }

robot_2Generated
code_blocksInput

Description

The Duration property represents the total length of the currently playing animation sequence, measured 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 AnimationSequence class. This property is read-only and provides the duration of the animation sequence that is currently active.

Example

// Example of accessing the Duration property
AnimationSequence animationSequence = GetCurrentAnimationSequence();
float animationDuration = animationSequence.Duration;

// Output the duration of the animation
// Note: Replace 'GetCurrentAnimationSequence' with the actual method to retrieve the animation sequence
// Console.WriteLine($"The animation duration is: {animationDuration} seconds");