UUserWidget::PlayAnimationForward

Plays an animation on this widget relative to it's current state forward.

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 * PlayAnimationForward
(
    UWidgetAnimation * InAnimation,
    float PlaybackSpeed,
    bool bRestoreState
)

Remarks

Plays an animation on this widget relative to it's current state forward. You should use this version in situations where say a user can click a button and that causes a panel to slide out, and you want to reverse that same animation to begin sliding in the opposite direction.

Parameters

Parameter

Description

InAnimation

The animation to play

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