|
QuickTween 1.4.1
|
#include <QuickTweenSequence.h>
Public Member Functions | |
| UQuickTweenSequence * | Join (UQuickTweenable *tween) |
| UQuickTweenSequence * | Append (UQuickTweenable *tween) |
| virtual void | SetOwner (UQuickTweenable *owner) override |
| virtual void | Play () override |
| virtual void | Pause () override |
| virtual void | Reverse () override |
| virtual void | Complete (bool bSnapToEnd=true) override |
| virtual void | Restart () override |
| virtual void | Kill () override |
| virtual void | Update (float deltaTime) override |
| virtual void | Evaluate (const FQuickTweenEvaluatePayload &payload, const UQuickTweenable *instigator) override |
| virtual bool | GetIsPendingKill () const override |
| virtual bool | GetIsPlaying () const override |
| virtual float | GetTimeScale () const override |
| virtual bool | GetIsReversed () const override |
| virtual EEaseType | GetEaseType () const override |
| virtual UCurveFloat * | GetEaseCurve () const override |
| virtual bool | GetAutoKill () const override |
| virtual bool | GetIsCompleted () const override |
| virtual float | GetLoopDuration () const override |
| virtual float | GetTotalDuration () const override |
| virtual float | GetElapsedTime () const override |
| virtual int32 | GetLoops () const override |
| virtual int32 | GetCurrentLoop () const override |
| virtual ELoopType | GetLoopType () const override |
| virtual FString | GetTweenTag () const override |
| virtual bool | GetShouldPlayWhilePaused () const override |
| int32 | GetNumTweens () const |
| UQuickTweenable * | GetTween (int32 index) const |
| void | AssignOnStartEvent (FDynamicDelegateTweenSequence callback) |
| void | AssignOnUpdateEvent (FDynamicDelegateTweenSequence callback) |
| void | AssignOnCompleteEvent (FDynamicDelegateTweenSequence callback) |
| void | AssignOnKilledEvent (FDynamicDelegateTweenSequence callback) |
| void | AssignOnLoopEvent (FDynamicDelegateTweenSequence 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) |
Static Public Member Functions | |
| static UQuickTweenSequence * | CreateSequence (UObject *worldContextObject, int32 loops=1, ELoopType loopType=ELoopType::Restart, const FString &id=FString(), bool bShouldAutoKill=true, bool bShouldPlayWhilePaused=false) |
Public Attributes | |
| FNativeDelegateTweenSequence | OnStart |
| FNativeDelegateTweenSequence | OnUpdate |
| FNativeDelegateTweenSequence | OnComplete |
| FNativeDelegateTweenSequence | OnKilled |
| FNativeDelegateTweenSequence | OnLoop |
UQuickTweenSequence manages a sequence of tween animations. Allows joining, appending, and controlling multiple tweens as a group. Supports looping, reversing, and querying sequence state. Note:
| UQuickTweenSequence * UQuickTweenSequence::Append | ( | UQuickTweenable * | tween | ) |
Creates a new group and adds a new tween to it.
| tween | The tween to append. |
| void UQuickTweenSequence::AssignOnCompleteEvent | ( | FDynamicDelegateTweenSequence | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween completes.
| callback | Dynamic delegate with signature (UQuickTweenSequence* Tween). The provided delegate will be stored and called on completion. |
| void UQuickTweenSequence::AssignOnKilledEvent | ( | FDynamicDelegateTweenSequence | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween is killed.
| callback | Dynamic delegate with signature (UQuickTweenSequence* Tween). The provided delegate will be stored and called when the tween is killed. |
| void UQuickTweenSequence::AssignOnLoopEvent | ( | FDynamicDelegateTweenSequence | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween loops.
| callback | Dynamic delegate with signature (UQuickTweenSequence* Tween). The provided delegate will be stored and called when the tween loops. |
| void UQuickTweenSequence::AssignOnStartEvent | ( | FDynamicDelegateTweenSequence | callback | ) |
Assign a Blueprint dynamic delegate to be invoked when the tween starts.
| callback | Dynamic delegate with signature (UQuickTweenSequence* Tween). The provided delegate will be stored and called on start events. |
| void UQuickTweenSequence::AssignOnUpdateEvent | ( | FDynamicDelegateTweenSequence | callback | ) |
Assign a Blueprint dynamic delegate to be invoked on every tween update.
| callback | Dynamic delegate with signature (UQuickTweenSequence* 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.
|
inlinestatic |
Creates a new tween sequence with the specified parameters.
| worldContextObject | Context object for world access. |
| loops | Number of loops (-1 = infinite). |
| loopType | Looping behavior. |
| id | Optional identifier for the sequence. |
| bShouldAutoKill | Whether to auto-kill the sequence on completion. |
| bShouldPlayWhilePaused | Whether the sequence should play while the game is paused. |
|
overridevirtual |
Evaluate the tween with value.
| payload | Evaluation payload containing active state and 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.
|
nodiscardoverridevirtual |
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.
|
nodiscard |
Gets the number of tweens in the sequence.
|
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.
|
nodiscard |
Gets the tween at the specified index.
| index | Index of the tween. |
|
inlinenodiscardoverridevirtual |
Get the user-assigned tag for this tween. Useful for identification and grouping.
Reimplemented from UQuickTweenable.
| UQuickTweenSequence * UQuickTweenSequence::Join | ( | UQuickTweenable * | tween | ) |
Joins a tween to the previously created group, or creates a new one if it is the first.
| tween | The tween to join. |
|
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 UQuickTweenSequence::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 UQuickTweenSequence::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 UQuickTweenSequence::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 UQuickTweenSequence::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 UQuickTweenSequence::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.
|
overridevirtual |
Update the tween state by a time delta.
| deltaTime | Time in seconds to advance the tween. |
Reimplemented from UQuickTweenable.
| FNativeDelegateTweenSequence UQuickTweenSequence::OnComplete |
Called when the sequence completes.
| FNativeDelegateTweenSequence UQuickTweenSequence::OnKilled |
Called when the sequence is killed.
| FNativeDelegateTweenSequence UQuickTweenSequence::OnLoop |
Called when the sequence loops.
| FNativeDelegateTweenSequence UQuickTweenSequence::OnStart |
Called when the sequence starts.
| FNativeDelegateTweenSequence UQuickTweenSequence::OnUpdate |
Called when the sequence updates.