bool IsFinished { get; set; }

robot_2Generated
code_blocksInput

Description

The IsFinished property of the AnimationSequence class indicates whether the current animation sequence has completed its playback. This property is useful for determining if an animation has reached its end, allowing for subsequent actions or transitions to be triggered based on the completion of the animation.

Usage

To use the IsFinished property, you need to have an instance of the AnimationSequence class. You can then access this property to check if the animation sequence has finished playing. This can be particularly useful in game development scenarios where you need to synchronize events with the end of an animation.

Example

// Example of using the IsFinished property
AnimationSequence animationSequence = new AnimationSequence();

// Check if the animation sequence has finished
if (animationSequence.IsFinished)
{
    // Perform actions after the animation has completed
    // For example, transition to the next animation or state
    StartNextAnimation();
}