UAssetManager::GetTimerManager
#include "Engine/AssetManager.h"
Access: public
Specifiers: const
Description
Returns a timer manager safe to use for asset-loading-related actions, backed by the editor or game instance timer manager depending on context.
Caveats & Gotchas
- • Can return nullptr during very early engine startup, before an editor or game instance timer manager exists — always null-check before use.
- • In editor builds this may be the editor's timer manager rather than a PIE instance's, so timers set through it won't pause the same way as gameplay timers.
Signature
FTimerManager* GetTimerManager() const Return Type
FTimerManager* Example
Use it for a retry timer during asset loading C++
if (FTimerManager* Timers = UAssetManager::Get().GetTimerManager())
{
FTimerHandle RetryHandle;
Timers->SetTimer(RetryHandle, this, &UMyLoader::RetryLoad, 1.0f, false);
} Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?