class

FTimerManager

Module
Core
Header
#include "Core/FTimerManager.h"
Namespace
Mowo

Constructors

SignatureNameDescription
FTimerManager()FTimerManager
~FTimerManager()~FTimerManager
FTimerManager(const FTimerManager&) = deleteFTimerManager

Public functions

ReturnsNameDescription
FTimerManager&GetThe ENGINE-scope manager, ticked by the engine loop for the whole process lifetime.
FTimerManager&operator=
voidSetTimerOverwrites outHandle.
size_tClearAllInModuleClears every timer a module set — the unload sweep, run over every live manager.
voidClearTimerNo-op if the handle is invalid or points to a swept slot.
boolIsTimerActive
floatGetTimerRemainingSeconds until the next fire; -1.0 if the handle is invalid.
boolPauseTimerA paused timer keeps its slot, its remaining time and its callback but does not count down; unpausing resumes from where it stopped.
boolUnPauseTimer
boolIsTimerPaused
voidTickCalled once per frame by the engine loop, before the gameplay tick.
size_tGetActiveTimerCount

Function details

FTimerManager

C++
FTimerManager()

~FTimerManager

C++
~FTimerManager()

FTimerManager

C++
FTimerManager(const FTimerManager&) = delete

Get

C++
static FTimerManager& Get()

The ENGINE-scope manager, ticked by the engine loop for the whole process lifetime. Gameplay code should use its world's manager (MWorld::GetTimerManager()) instead: a timer set here from an actor outlives the world, and its captured pointers dangle when it fires.

operator=

C++
FTimerManager& operator=(const FTimerManager&) = delete

SetTimer

C++
void SetTimer(FTimerHandle& outHandle, std::function<void()> callback, float delaySeconds, bool loop = false, const void* owner = FModuleAnchor::Here())

Overwrites outHandle. A looping timer re-arms after each fire, a non-looping one self-clears. owner names the setting module (FModuleAnchor): every live manager clears that module's timers when it unloads, rather than firing a callback into its freed code.

ClearAllInModule

C++
size_t ClearAllInModule(void* moduleHandle)

Clears every timer a module set — the unload sweep, run over every live manager. Returns how many were cleared.

ClearTimer

C++
void ClearTimer(FTimerHandle& handle)

No-op if the handle is invalid or points to a swept slot.

IsTimerActive

C++
bool IsTimerActive(const FTimerHandle& handle) const

GetTimerRemaining

C++
float GetTimerRemaining(const FTimerHandle& handle) const

Seconds until the next fire; -1.0 if the handle is invalid. A paused timer reports the time it had left when it was paused.

PauseTimer

C++
bool PauseTimer(const FTimerHandle& handle)

A paused timer keeps its slot, its remaining time and its callback but does not count down; unpausing resumes from where it stopped. It stays "active" throughout — IsTimerPaused is what tells the two apart — so a paused handle can still be cleared, queried and unpaused. False for an invalid or stale handle, or when the timer is already in that state.

UnPauseTimer

C++
bool UnPauseTimer(const FTimerHandle& handle)

IsTimerPaused

C++
bool IsTimerPaused(const FTimerHandle& handle) const

Tick

C++
void Tick(float deltaSeconds)

Called once per frame by the engine loop, before the gameplay tick.

GetActiveTimerCount

C++
size_t GetActiveTimerCount() const noexcept
Generated from Core/FTimerManager.h via core.json · Nov 5, 2026Version 1.0.0