UUserWidget::PlayAnimationTimeRange

Plays an animation in this widget a specified number of times stopping at a specified time

Windows
MacOS
Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h

Include

#include "Blueprint/UserWidget.h"

Source

/Engine/Source/Runtime/UMG/Private/UserWidget.cpp

Syntax

UUMGSequencePlayer * PlayAnimationTimeRange
(
    UWidgetAnimation * InAnimation,
    float StartAtTime,
    float EndAtTime,
    int32 NumLoopsToPlay,
    EUMGSequencePlayMode::Type PlayMode,
    float PlaybackSpeed,
    bool bRestoreState
)

Remarks

Plays an animation in this widget a specified number of times stopping at a specified time

Parameters

Parameter

Description

InAnimation

The animation to play

StartAtTime

The time in the animation from which to start playing, relative to the start position. For looped animations, this will only affect the first playback of the animation.

EndAtTime

The absolute time in the animation where to stop, this is only considered in the last loop.

NumLoopsToPlay

The number of times to loop this animation (0 to loop indefinitely)

PlayMode

Specifies the playback mode

PlaybackSpeed

The speed at which the animation should play

bRestoreState

Restores widgets to their pre-animated state when the animation stops

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback