float TimeNormalized { get; set; }

robot_2Generated
code_blocksInput

Description

The TimeNormalized property provides the normalized elapsed time of the currently playing animation sequence. This value is a float ranging from 0 to 1, where 0 indicates the start of the animation and 1 indicates the end.

Usage

Use the TimeNormalized property to determine the progress of an animation sequence in a normalized form. This can be useful for synchronizing other actions or effects with the animation's progress.

Example

// Example of using the TimeNormalized property
AnimationSequence animationSequence = GetCurrentAnimationSequence();

// Check the normalized time of the animation
float progress = animationSequence.TimeNormalized;

// Use the progress to trigger an event or effect
if (progress > 0.5f)
{
    // Trigger an event when the animation is halfway through
    TriggerHalfwayEvent();
}