Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/UUserWidget
Description
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.
| Name | QueuePlayAnimationForward |
| Type | function |
| Header File | /Engine/Source/Runtime/UMG/Public/Blueprint/UserWidget.h |
| Include Path | #include "Blueprint/UserWidget.h" |
| Source | /Engine/Source/Runtime/UMG/Private/UserWidget.cpp |
UFUNCTION (BlueprintCallable, BlueprintCosmetic, Category="User Interface|Animation")
void QueuePlayAnimationForward
(
UWidgetAnimation * InAnimation,
float PlaybackSpeed,
bool bRestoreState
)
Parameters
| Name | Remarks |
|---|---|
| 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 |