5#include "CoreMinimal.h"
6#include "UObject/Object.h"
7#include "Containers/Ticker.h"
8#include "ComponentDecorator_Animation.generated.h"
41class TOUCHINTERFACE_API UComponentDecorator_Animation : public UObject
46 UComponentDecorator_Animation();
48 virtual void Initialize(
const TSharedPtr<SWidget> Widget,
const TObjectPtr<UComponentDecorator> Decorator);
55 bool Tick_Internal(
const float DeltaTime);
59 virtual void SetTickEnabled(
const bool bEnable);
62 void PlayAnimation(
const bool bFromStart);
65 void PlayReverseAnimation(
const bool bFromEnd);
71 UFUNCTION(
Category=
"Tick", BlueprintNativeEvent)
72 void Tick(
const float DeltaSeconds);
83 uint8 bPlayFromStart:1;
90 uint8 bReverseFromEnd:1;
94 uint8 bStopAnimation:1;
111 uint8 bStartTickEnabled:1;
120 TWeakObjectPtr<UComponentDecorator> DecoratorObject;
123 FTSTicker::FDelegateHandle TickerHandle;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FTickableObject, const float, DeltaTime)
EditInlineNew
Definition ComponentDecorator_Animation.h:40
Abstract
Definition ComponentDecorator_Animation.h:40
BlueprintType
Definition ComponentDecorator_Animation.h:40
HideCategories
Definition ComponentDecorator_Animation.h:40
EAnimationTriggerMode
Definition ComponentDecorator_Animation.h:15
@ OnDemand
Definition ComponentDecorator_Animation.h:29
@ OnPress
Definition ComponentDecorator_Animation.h:17
@ AtBegin
Definition ComponentDecorator_Animation.h:23
@ OnRelease
Definition ComponentDecorator_Animation.h:20
Blueprintable
Definition ComponentDecorator_Animation.h:40
meta
Definition GestureRecognizerComp.h:274
Definition ComponentDecorator.h:36
virtual void BeginDestroy() override
Definition ComponentDecorator.cpp:35
TSharedPtr< SWidget > DecoratorWidget
Definition ComponentDecorator.h:218
virtual void Initialize(TObjectPtr< ULayoutComponent > Component)
Definition ComponentDecorator.cpp:56
EditAnywhere
Definition ComponentDecorator.h:164
Category
Definition ComponentDecorator.h:80
BlueprintCallable
Definition ComponentDecorator.h:80
BlueprintReadOnly
Definition ComponentDecorator.h:178