struct

FModularSceneSystem

One world system contributed by a plugin (or a below-Game module). Mirrors Scene's internal SceneSystemEntry: which registration set the system belongs to (base = edit mode, simulation, runtime), where it ticks outside World::Update (editorTick/simulationTick are explicit sequence indices, -1 = skip), and what gets torn down on Runtime/Simulation stop. The factory hooks are plain function pointers so the descriptor stays trivially copyable across the DLL boundary.

Module
ECS
Header
#include "ECS/SceneSystemRegistry.h"
Namespace
Mowo

ABI WARNING: plugins construct this struct with THEIR compiled layout and the registry copies it with the engine's. Growing the struct therefore requires rebuilding every plugin binary — a stale plugin registers a short struct and the engine reads garbage past its end (a call through a junk function pointer, first seen when OnSceneAttach was added). New fields go at the END, every field must be null-tolerated, and MOWO_MODULE_API_VERSION (Core/FModuleManager.h) must be bumped so the loader refuses a plugin compiled against the old layout instead of copying past its end.

Properties

TypeNameDescription
std::stringName
boolBaseDefault false.
boolSimulationDefault false.
boolRuntimeDefault false.
int32_tEditorTickDefault -1.
int32_tSimulationTickDefault -1.
boolRemoveOnRuntimeStopDefault false.
boolRemoveOnSimulationStopDefault false.

Public functions

ReturnsNameDescription
void
void
void
voidCalled after every ensure pass with the owning Scene — the modular analogue of the SetSceneHooks/SetScene wiring blocks, so a plugin system can spawn/destroy through the Scene's entity metadata instead of raw World entities.

Function details

void

C++
void (*Ensure)(World&) = nullptr

void

C++
void (*Update)(World&, float) = nullptr

void

C++
void (*Remove)(World&) = nullptr

void

C++
void (*OnSceneAttach)(World&, Scene&) = nullptr

Called after every ensure pass with the owning Scene — the modular analogue of the SetSceneHooks/SetScene wiring blocks, so a plugin system can spawn/destroy through the Scene's entity metadata instead of raw World entities. Must be idempotent: Initialize, runtime start and simulation start each re-run it. Scene is opaque down here — the callback is only ever invoked from Scene itself.

Generated from ECS/SceneSystemRegistry.h via ecs.json · Nov 4, 2026Version 1.0.0