class

FCoreDelegates

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

Public functions

ReturnsNameDescription
MulticastDelegate<>&OnPostEngineInitAFTER every engine subsystem has initialised, BEFORE the first frame runs.
MulticastDelegate<>&OnPostFirstFrameAfter the first frame has been submitted to the GPU — the point where warmup costs (shader compile, PSO bake) are already paid.
MulticastDelegate<>&OnAppEnterBackgroundMobile app lifecycle (M2.4).
MulticastDelegate<>&OnAppEnterForeground
MulticastDelegate<>&OnAppLowMemory
MulticastDelegate<>&OnPreEngineShutdownBefore Engine::Shutdown tears modules down; the Engine is still fully alive, so VFS and the asset manager still work.
MulticastDelegate<>&OnEngineExitAfter every subsystem has shut down — nothing engine-related is usable any more.
MulticastDelegate<>&OnPreSceneSwitchBefore a SceneManager scene-switch takes effect: the last chance to touch the outgoing scene.
MulticastDelegate<>&OnPostSceneSwitchAfter the switch applied.
MulticastDelegate<>&OnProjectLoadedAfter ProjectManager opens a project: registry scanned, .mproject parsed, project root mounted in VFS.
MulticastDelegate<>&OnProjectClosingBefore a project closes — asset manager about to shut down, VFS about to unmount.
MulticastDelegate<>&OnPreGarbageCollectAround an MObject GC run.
MulticastDelegate<>&OnPostGarbageCollect
MulticastDelegate<float >&OnTickStartTop of Engine::Run's frame loop, before any subsystem ticks.
MulticastDelegate<float >&OnTickEndBottom of the frame loop, after present.
MulticastDelegate<class FName>&OnAssetReloadedAn asset file changed on disk (editor only — the runtime does not watch files).

Function details

OnPostEngineInit

C++
static MulticastDelegate<>& OnPostEngineInit()

AFTER every engine subsystem has initialised, BEFORE the first frame runs. Main-thread.

OnPostFirstFrame

C++
static MulticastDelegate<>& OnPostFirstFrame()

After the first frame has been submitted to the GPU — the point where warmup costs (shader compile, PSO bake) are already paid. Main-thread.

OnAppEnterBackground

C++
static MulticastDelegate<>& OnAppEnterBackground()

Mobile app lifecycle (M2.4). EnterBackground fires AFTER the GPU has been idled and BEFORE the frame loop pauses — the last safe moment to flush saves; on iOS the process may never run again. EnterForeground fires before the first resumed frame. LowMemory is the OS memory warning: drop caches, allocate nothing. All main-thread; never fired on desktop (SDL raises the events only on mobile).

OnAppEnterForeground

C++
static MulticastDelegate<>& OnAppEnterForeground()

OnAppLowMemory

C++
static MulticastDelegate<>& OnAppLowMemory()

OnPreEngineShutdown

C++
static MulticastDelegate<>& OnPreEngineShutdown()

Before Engine::Shutdown tears modules down; the Engine is still fully alive, so VFS and the asset manager still work. Main-thread.

OnEngineExit

C++
static MulticastDelegate<>& OnEngineExit()

After every subsystem has shut down — nothing engine-related is usable any more. Main-thread.

OnPreSceneSwitch

C++
static MulticastDelegate<>& OnPreSceneSwitch()

Before a SceneManager scene-switch takes effect: the last chance to touch the outgoing scene. Main-thread, at the frame boundary between Update and Render.

OnPostSceneSwitch

C++
static MulticastDelegate<>& OnPostSceneSwitch()

After the switch applied. Main-thread, same frame boundary.

OnProjectLoaded

C++
static MulticastDelegate<>& OnProjectLoaded()

After ProjectManager opens a project: registry scanned, .mproject parsed, project root mounted in VFS. Main-thread.

OnProjectClosing

C++
static MulticastDelegate<>& OnProjectClosing()

Before a project closes — asset manager about to shut down, VFS about to unmount. Main-thread.

OnPreGarbageCollect

C++
static MulticastDelegate<>& OnPreGarbageCollect()

Around an MObject GC run. Subscribers should clear weak references the GC can't trace through.

OnPostGarbageCollect

C++
static MulticastDelegate<>& OnPostGarbageCollect()

OnTickStart

C++
static MulticastDelegate<float >& OnTickStart()

Top of Engine::Run's frame loop, before any subsystem ticks.

OnTickEnd

C++
static MulticastDelegate<float >& OnTickEnd()

Bottom of the frame loop, after present.

OnAssetReloaded

C++
static MulticastDelegate<class FName>& OnAssetReloaded()

An asset file changed on disk (editor only — the runtime does not watch files). The FName payload is the asset's stable ID; look the asset up through AssetManager.

Generated from Core/FCoreDelegates.h via core.json · Nov 5, 2026Version 1.0.0