FCoreDelegates
- Module
- Core
- Header
#include "Core/FCoreDelegates.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
MulticastDelegate<>& | OnPostEngineInit | AFTER every engine subsystem has initialised, BEFORE the first frame runs. |
MulticastDelegate<>& | OnPostFirstFrame | After the first frame has been submitted to the GPU — the point where warmup costs (shader compile, PSO bake) are already paid. |
MulticastDelegate<>& | OnAppEnterBackground | Mobile app lifecycle (M2.4). |
MulticastDelegate<>& | OnAppEnterForeground | |
MulticastDelegate<>& | OnAppLowMemory | |
MulticastDelegate<>& | OnPreEngineShutdown | Before Engine::Shutdown tears modules down; the Engine is still fully alive, so VFS and the asset manager still work. |
MulticastDelegate<>& | OnEngineExit | After every subsystem has shut down — nothing engine-related is usable any more. |
MulticastDelegate<>& | OnPreSceneSwitch | Before a SceneManager scene-switch takes effect: the last chance to touch the outgoing scene. |
MulticastDelegate<>& | OnPostSceneSwitch | After the switch applied. |
MulticastDelegate<>& | OnProjectLoaded | After ProjectManager opens a project: registry scanned, .mproject parsed, project root mounted in VFS. |
MulticastDelegate<>& | OnProjectClosing | Before a project closes — asset manager about to shut down, VFS about to unmount. |
MulticastDelegate<>& | OnPreGarbageCollect | Around an MObject GC run. |
MulticastDelegate<>& | OnPostGarbageCollect | |
MulticastDelegate<float >& | OnTickStart | Top of Engine::Run's frame loop, before any subsystem ticks. |
MulticastDelegate<float >& | OnTickEnd | Bottom of the frame loop, after present. |
MulticastDelegate<class FName>& | OnAssetReloaded | An asset file changed on disk (editor only — the runtime does not watch files). |
Function details
OnPostEngineInit
static MulticastDelegate<>& OnPostEngineInit()AFTER every engine subsystem has initialised, BEFORE the first frame runs. Main-thread.
OnPostFirstFrame
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
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
static MulticastDelegate<>& OnAppEnterForeground()OnAppLowMemory
static MulticastDelegate<>& OnAppLowMemory()OnPreEngineShutdown
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
static MulticastDelegate<>& OnEngineExit()After every subsystem has shut down — nothing engine-related is usable any more. Main-thread.
OnPreSceneSwitch
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
static MulticastDelegate<>& OnPostSceneSwitch()After the switch applied. Main-thread, same frame boundary.
OnProjectLoaded
static MulticastDelegate<>& OnProjectLoaded()After ProjectManager opens a project: registry scanned, .mproject parsed, project root mounted in VFS. Main-thread.
OnProjectClosing
static MulticastDelegate<>& OnProjectClosing()Before a project closes — asset manager about to shut down, VFS about to unmount. Main-thread.
OnPreGarbageCollect
static MulticastDelegate<>& OnPreGarbageCollect()Around an MObject GC run. Subscribers should clear weak references the GC can't trace through.
OnPostGarbageCollect
static MulticastDelegate<>& OnPostGarbageCollect()OnTickStart
static MulticastDelegate<float >& OnTickStart()Top of Engine::Run's frame loop, before any subsystem ticks.
OnTickEnd
static MulticastDelegate<float >& OnTickEnd()Bottom of the frame loop, after present.
OnAssetReloaded
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.