UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WidgetAnimationPlayCallbackProxy.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
7
8#include "WidgetAnimationPlayCallbackProxy.generated.h"
9
11class UUserWidget;
14
16
17UCLASS(MinimalAPI)
19{
21
22 // Called when animation has been completed
23 UPROPERTY(BlueprintAssignable)
25
26 UFUNCTION(BlueprintCallable , Category = "User Interface|Animation", meta = (
27 BlueprintInternalUseOnly = "true",
28 DisplayName = "Play Animation with Finished event (legacy)",
29 ShortToolTip = "Play Animation and trigger event on Finished (legacy version using deprecated UMG Sequencer Player)",
30 ToolTip="Play Animation on widget and trigger Finish event when the animation is done (legacy version using deprecated UMG Sequencer Player)."))
32 UUMGSequencePlayer*& Result,
34 UWidgetAnimation* InAnimation,
35 float StartAtTime = 0.0f,
36 int32 NumLoopsToPlay = 1,
38 float PlaybackSpeed = 1.0f);
39
40 UFUNCTION(BlueprintCallable , Category = "User Interface|Animation", meta = (
41 BlueprintInternalUseOnly = "true",
42 DisplayName = "Play Animation with Finished event",
43 ShortToolTip = "Play Animation and trigger event on Finished",
44 ToolTip="Play Animation on widget and trigger Finish event when the animation is done."))
48 UWidgetAnimation* InAnimation,
49 float StartAtTime = 0.0f,
50 int32 NumLoopsToPlay = 1,
52 float PlaybackSpeed = 1.0f);
53
54 UFUNCTION(BlueprintCallable, Category = "User Interface|Animation", meta = (
55 BlueprintInternalUseOnly = "true",
56 DisplayName = "Play Animation Time Range with Finished event (legacy)",
57 ShortToolTip = "Play Animation Time Range and trigger event on Finished (legacy version using deprecated UMG Sequencer Player)",
58 ToolTip = "Play Animation Time Range on widget and trigger Finish event when the animation is done (legacy version using deprecated UMG Sequencer Player)."))
60 UUMGSequencePlayer*& Result,
62 UWidgetAnimation* InAnimation,
63 float StartAtTime = 0.0f,
64 float EndAtTime = 0.0f,
65 int32 NumLoopsToPlay = 1,
67 float PlaybackSpeed = 1.0f);
68
69 UFUNCTION(BlueprintCallable, Category = "User Interface|Animation", meta = (
70 BlueprintInternalUseOnly = "true",
71 DisplayName = "Play Animation Time Range with Finished event",
72 ShortToolTip = "Play Animation Time Range and trigger event on Finished",
73 ToolTip = "Play Animation Time Range on widget and trigger Finish event when the animation is done."))
77 UWidgetAnimation* InAnimation,
78 float StartAtTime = 0.0f,
79 float EndAtTime = 0.0f,
80 int32 NumLoopsToPlay = 1,
82 float PlaybackSpeed = 1.0f);
83
84private:
85
86 void ExecutePlayAnimation(UUserWidget* Widget, UWidgetAnimation* InAnimation, float StartAtTime, int32 NumLoopsToPlay, EUMGSequencePlayMode::Type PlayMode, float PlaybackSpeed);
87 void ExecutePlayAnimationTimeRange(UUserWidget* Widget, UWidgetAnimation* InAnimation, float StartAtTime, float EndAtTime, int32 NumLoopsToPlay, EUMGSequencePlayMode::Type PlayMode, float PlaybackSpeed);
88 void OnSequenceFinished(FWidgetAnimationState& State);
89 bool OnAnimationFinished(float DeltaTime);
90
91 FWidgetAnimationHandle WidgetAnimationHandle;
92 FDelegateHandle OnFinishedHandle;
93};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE(DelegateName)
Definition DelegateCombinations.h:38
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition IDelegateInstance.h:14
Definition Object.h:95
Definition UMGSequencePlayer.h:20
Definition UserWidget.h:284
Definition WidgetAnimationPlayCallbackProxy.h:19
Definition WidgetAnimation.h:26
Type
Definition UMGSequencePlayMode.h:16
@ Forward
Definition UMGSequencePlayMode.h:18
Definition WidgetAnimationHandle.h:22
Definition WidgetAnimationState.h:48