|
QuickTween 1.3
|
#include <QuickTweenManager.h>
Public Member Functions | |
| virtual void | Initialize (FSubsystemCollectionBase &Collection) override |
| virtual void | Deinitialize () override |
| virtual UWorld * | GetTickableGameObjectWorld () const override |
| virtual void | Tick (float deltaTime) override |
| virtual TStatId | GetStatId () const override |
| virtual ETickableTickType | GetTickableTickType () const override |
| virtual bool | IsTickable () const override |
| virtual bool | IsTickableInEditor () const override |
| virtual bool | IsTickableWhenPaused () const override |
| void | AddTween (class UQuickTweenable *tween) |
| void | RemoveTween (class UQuickTweenable *tween) |
| UQuickTweenable * | FindTweenByPredicate (TFunctionRef< bool(UQuickTweenable *)> predicate) const |
| UQuickTweenable * | FindLastTweenByPredicate (TFunctionRef< bool(UQuickTweenable *)> predicate) const |
| TArray< UQuickTweenable * > | FindAllTweensByPredicate (TFunctionRef< bool(UQuickTweenable *)> predicate) const |
| void | ExecutePredicateByCondition (TFunctionRef< void(UQuickTweenable *)> action, TFunctionRef< bool(const UQuickTweenable *)> predicate) const |
Static Public Member Functions | |
| static UQuickTweenManager * | Get (const UObject *worldContextObject) |
World-scoped manager that updates active tweens each frame. Implements a world subsystem to live with the UWorld and implements FTickableGameObject so the engine will call Tick on this instance.
Use UQuickTweenManager::Get(...) to retrieve the manager for a given world context object.
| void UQuickTweenManager::AddTween | ( | class UQuickTweenable * | tween | ) |
Register a tween with the manager so it will be updated on Tick.
| tween | - Pointer to the UQuickTweenable to add. Manager does not take ownership. |
|
overridevirtual |
Deinitialize the subsystem. Called when the world subsystem is being destroyed. Use this to clean up any remaining tweens and resources.
| void UQuickTweenManager::ExecutePredicateByCondition | ( | TFunctionRef< void(UQuickTweenable *)> | action, |
| TFunctionRef< bool(const UQuickTweenable *)> | predicate ) const |
Execute a function on all tweens matching the given predicate.
| action | - Function to execute on each matching tween. |
| predicate | - Function that returns true for the desired tweens. |
| TArray< UQuickTweenable * > UQuickTweenManager::FindAllTweensByPredicate | ( | TFunctionRef< bool(UQuickTweenable *)> | predicate | ) | const |
Find all tweens matching the given predicate.
| predicate | - Function that returns true for the desired tweens. |
| UQuickTweenable * UQuickTweenManager::FindLastTweenByPredicate | ( | TFunctionRef< bool(UQuickTweenable *)> | predicate | ) | const |
Find the last tween matching the given predicate.
| predicate | - Function that returns true for the desired tween. |
| UQuickTweenable * UQuickTweenManager::FindTweenByPredicate | ( | TFunctionRef< bool(UQuickTweenable *)> | predicate | ) | const |
Find a tween matching the given predicate.
| predicate | - Function that returns true for the desired tween. |
|
static |
Retrieve the singleton instance of UQuickTweenManager for the given world context.
| worldContextObject | - Any UObject that can be used to resolve the UWorld (e.g. Actor, Component, World). |
|
overridevirtual |
Return a unique stat id for profiling this tickable object.
|
overridevirtual |
Provide the world this tickable object belongs to.
|
inlineoverridevirtual |
Always tick this object (even when not actively rendered).
|
overridevirtual |
Initialize the subsystem. Called when the world subsystem is created.
| Collection | - Subsystem collection info provided by the engine. |
|
inlineoverridevirtual |
Indicate whether this object should be ticked.
|
inlineoverridevirtual |
Indicate whether this object is tickable in the editor.
|
inlineoverridevirtual |
Indicate whether this object should still tick when the game is paused.
| void UQuickTweenManager::RemoveTween | ( | class UQuickTweenable * | tween | ) |
Unregister a tween so it will no longer be updated.
| tween | - Pointer to the UQuickTweenable to remove. |
|
overridevirtual |
Per-frame tick function called by the engine.
| deltaTime | - Time elapsed since the last tick (in seconds). |