|
QuickTween 1.3
|
#include <QuickTweenBase.h>
Public Member Functions | |
| void | SetUp (const UObject *worldContextObject, float duration, float timeScale, EEaseType easeType, UCurveFloat *easeCurve, int32 loops, ELoopType loopType, const FString &tweenTag=FString(), bool bShouldAutoKill=true, bool bShouldPlayWhilePaused=false, bool bShouldAutoPlay=false) |
| virtual void | SetOwner (UQuickTweenable *owner) override |
| virtual void | Play () override |
| virtual void | Pause () override |
| virtual void | Reverse () override |
| virtual void | Restart () override |
| virtual void | Complete (bool bSnapToEnd=true) override |
| virtual void | Kill () override |
| virtual void | Update (float deltaTime) override |
| virtual void | Evaluate (bool bIsActive, float value, const UQuickTweenable *instigator) override |
| virtual bool | GetIsPendingKill () const override |
| virtual float | GetLoopDuration () const override |
| virtual float | GetTotalDuration () const override |
| virtual float | GetElapsedTime () const override |
| virtual float | GetTimeScale () const override |
| virtual bool | GetIsPlaying () const override |
| virtual bool | GetIsCompleted () const override |
| virtual bool | GetIsReversed () const override |
| virtual EEaseType | GetEaseType () const override |
| virtual UCurveFloat * | GetEaseCurve () const override |
| virtual int32 | GetLoops () const override |
| virtual ELoopType | GetLoopType () const override |
| virtual FString | GetTweenTag () const override |
| virtual int32 | GetCurrentLoop () const override |
| virtual bool | GetAutoKill () const override |
| virtual bool | GetShouldPlayWhilePaused () const override |
| bool | GetSnapToEndOnComplete () const |
| bool | InstigatorIsOwner (const UQuickTweenable *instigator) const |
| bool | HasOwner () const |
| void | AssignOnStartEvent (FDynamicDelegateTween callback) |
| void | AssignOnUpdateEvent (FDynamicDelegateTween callback) |
| void | AssignOnCompleteEvent (FDynamicDelegateTween callback) |
| void | AssignOnKilledEvent (FDynamicDelegateTween callback) |
| void | AssignOnLoopEvent (FDynamicDelegateTween callback) |
| void | RemoveAllOnStartEvent (const UObject *object) |
| void | RemoveAllOnUpdateEvent (const UObject *object) |
| void | RemoveAllOnCompleteEvent (const UObject *object) |
| void | RemoveAllOnKilledEvent (const UObject *object) |
| void | RemoveAllOnLoopEvent (const UObject *object) |
Public Attributes | |
| FNativeDelegateTween | OnStart |
| FNativeDelegateTween | OnUpdate |
| FNativeDelegateTween | OnComplete |
| FNativeDelegateTween | OnKilled |
| FNativeDelegateTween | OnLoop |
Protected Member Functions | |
| virtual void | ApplyAlphaValue (float alpha) |
| virtual void | HandleOnStart () |
| virtual void | HandleOnComplete () |
| virtual void | HandleOnKill () |
Base class for all QuickTween tweens. Provides core tweening functionality, state, and events.
|
protectedvirtual |
Apply the interpolated alpha value to the tweened property.
| alpha | Interpolated alpha value (0.0 to 1.0). |
Reimplemented in UQuickColorTween, UQuickFloatTween, UQuickIntTween, UQuickRotatorTween, UQuickVector2DTween, and UQuickVectorTween.
| void UQuickTweenBase::AssignOnCompleteEvent | ( | FDynamicDelegateTween | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween completes.
| callback | Dynamic delegate with signature (UQuickTweenBase* Tween). The provided delegate will be stored and called on completion. |
| void UQuickTweenBase::AssignOnKilledEvent | ( | FDynamicDelegateTween | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween is killed.
| callback | Dynamic delegate with signature (UQuickTweenBase* Tween). The provided delegate will be stored and called when the tween is killed. |
| void UQuickTweenBase::AssignOnLoopEvent | ( | FDynamicDelegateTween | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween loops.
| callback | Dynamic delegate with signature (UQuickTweenBase* Tween). The provided delegate will be stored and called when the tween loops. |
| void UQuickTweenBase::AssignOnStartEvent | ( | FDynamicDelegateTween | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween starts.
| callback | Dynamic delegate with signature (UQuickTweenBase* Tween). The provided delegate will be stored and called on start events. |
| void UQuickTweenBase::AssignOnUpdateEvent | ( | FDynamicDelegateTween | callback | ) |
Assign a Blueprint dynamic delegate to be invoked on every tween update.
| callback | Dynamic delegate with signature (UQuickTweenBase* Tween). The provided delegate will be stored and called each update tick. |
|
overridevirtual |
Immediately complete the tween. If the tween is reversed bSnapToEnd is inverted.
| bSnapToEnd | If true, snap properties to final state when completing. |
Reimplemented from UQuickTweenable.
|
overridevirtual |
Evaluate the tween with value.
| bIsActive | if true, this tween is active. |
| value | . |
| instigator |
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Returns whether this tween will be removed automatically after completion.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the current loop index (0-based) the tween is on.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the custom easing curve used by the tween, if any.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the easing function type used by this tween.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the total elapsed time since the tween started (in seconds).
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Check whether the tween has reached its completion state.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Query whether this tween is pending removal from the manager.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Check if the tween is currently playing.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Returns true if the tween's reversed flag is set (affects playback direction).
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the configured duration of the loop in seconds.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the configured number of loops for this tween (-1 for infinite if supported).
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the loop behavior used when the tween repeats (e.g., Restart, Yoyo).
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Whether the tween should continue running even when the game is paused.
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the current time scale applied to the tween (1.0 = normal speed).
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the total duration of the whole tween (max value for infinite)
Reimplemented from UQuickTweenable.
|
inlinenodiscardoverridevirtual |
Get the user-assigned tag for this tween. Useful for identification and grouping.
Reimplemented from UQuickTweenable.
|
protectedvirtual |
Called when the tween transitions to the Complete state.
Reimplemented in UQuickColorTween, UQuickFloatTween, UQuickIntTween, UQuickRotatorTween, UQuickVector2DTween, and UQuickVectorTween.
|
protectedvirtual |
Called when the tween transitions to the Kill state.
This is invoked once when the tween is being removed. Implementations should perform any necessary cleanup and invoke killed events.
|
protectedvirtual |
Called when the tween transitions to the Start state.
This is invoked once when the tween begins. Implementations should perform any initialization required before the first update tick (e.g. set initial values, invoke start events).
Reimplemented in UQuickColorTween, UQuickFloatTween, UQuickIntTween, UQuickRotatorTween, UQuickVector2DTween, and UQuickVectorTween.
|
overridevirtual |
Forcefully kill the tween and mark it for removal.
Reimplemented from UQuickTweenable.
|
overridevirtual |
Pause playback of the tween.
Reimplemented from UQuickTweenable.
|
overridevirtual |
Start or resume playback of the tween.
Reimplemented from UQuickTweenable.
| void UQuickTweenBase::RemoveAllOnCompleteEvent | ( | const UObject * | object | ) |
Remove all bound Blueprint dynamic delegates for the complete event that belong to the specified object.
| object | The UObject whose bindings should be removed. If nullptr, no action is taken. |
| void UQuickTweenBase::RemoveAllOnKilledEvent | ( | const UObject * | object | ) |
Remove all bound Blueprint dynamic delegates for the killed event that belong to the specified object.
| object | The UObject whose bindings should be removed. If nullptr, no action is taken. |
| void UQuickTweenBase::RemoveAllOnLoopEvent | ( | const UObject * | object | ) |
Remove all bound Blueprint dynamic delegates for the loop event that belong to the specified object.
| object | The UObject whose bindings should be removed. If nullptr, no action is taken. |
| void UQuickTweenBase::RemoveAllOnStartEvent | ( | const UObject * | object | ) |
Remove all bound Blueprint dynamic delegates for the start event that belong to the specified object.
| object | The UObject whose bindings should be removed. If nullptr, no action is taken. |
| void UQuickTweenBase::RemoveAllOnUpdateEvent | ( | const UObject * | object | ) |
Remove all bound Blueprint dynamic delegates for the update event that belong to the specified object.
| object | The UObject whose bindings should be removed. If nullptr, no action is taken. |
|
overridevirtual |
Restart the tween from its beginning (in case it is reversed, it will restart at the end). Must be played again after restarting.
Reimplemented from UQuickTweenable.
|
overridevirtual |
Play the tween in reverse (playback direction is inverted).
Reimplemented from UQuickTweenable.
|
inlineoverridevirtual |
Set the owning tween object for this tweenable.
Reimplemented from UQuickTweenable.
| void UQuickTweenBase::SetUp | ( | const UObject * | worldContextObject, |
| float | duration, | ||
| float | timeScale, | ||
| EEaseType | easeType, | ||
| UCurveFloat * | easeCurve, | ||
| int32 | loops, | ||
| ELoopType | loopType, | ||
| const FString & | tweenTag = FString(), | ||
| bool | bShouldAutoKill = true, | ||
| bool | bShouldPlayWhilePaused = false, | ||
| bool | bShouldAutoPlay = false ) |
Set up the tween with the specified parameters.
| worldContextObject | Context object for world access. |
| duration | Duration of the loop in seconds. |
| timeScale | Time scale multiplier. |
| easeType | Type of easing to use. |
| easeCurve | Optional custom curve for easing. |
| loops | Number of loops (-1 = infinite). |
| loopType | Looping behavior. |
| tweenTag | Optional tag for identification. |
| bShouldAutoKill | Whether to auto-kill the tween on completion. |
| bShouldPlayWhilePaused | Whether the tween should play while the game is paused. |
| bShouldAutoPlay | Whether the tween should start playing immediately. |
|
overridevirtual |
Update the tween state by a time delta.
| deltaTime | Time in seconds to advance the tween. |
Reimplemented from UQuickTweenable.
| FNativeDelegateTween UQuickTweenBase::OnComplete |
Event triggered when the tween completes.
| FNativeDelegateTween UQuickTweenBase::OnKilled |
Event triggered when the tween is killed.
| FNativeDelegateTween UQuickTweenBase::OnLoop |
Event triggered when the tween loops.
| FNativeDelegateTween UQuickTweenBase::OnStart |
Event triggered when the tween starts.
| FNativeDelegateTween UQuickTweenBase::OnUpdate |
Event triggered when the tween updates.