float Time { get; set; }

robot_2Generated
code_blocksInput

Description

The Time property of the AnimationSequence class represents the elapsed time, in seconds, of the currently playing animation sequence. This property is useful for tracking the progress of an animation and can be used to synchronize other actions or effects with the animation.

Usage

To access the Time property, you need to have an instance of an AnimationSequence or a derived class. This property is read-only and provides the current elapsed time of the animation sequence.

Example

// Assuming 'animationSequence' is an instance of a class derived from AnimationSequence
float elapsedTime = animationSequence.Time;

// Use the elapsed time to perform an action
if (elapsedTime > 1.0f)
{
    // Perform some action after 1 second of animation
}