class

SubEmitterModule

Sub-emitter: wherever the parent's particles are born, die or hit something, spawn particles into a child emitter — sparks that burst into embers on impact, a firework shell that dies into a shower. The child is either another emitter of the same .vfx system, named by childEmitter, or an asset of its own, childPath. It is resolved into the parent's children and spawns only from these events.

Module
Particles
Header
#include "Particles/ParticleModule.h"
Namespace
Mowo

Properties

TypeNameDescription
EParticleEventTypetriggerDefault EParticleEventType::Death.
std::stringchildEmitter
std::stringchildPath
uint32_tspawnCountParticles spawned into the child per event. Default 5.
floatprobabilityChance each event fires at all, so a dense parent can seed a sparse child. Default 1.0f.
floatinheritVelocityShare of the parent particle's velocity added to the child's own. Default 0.0f.
boolinheritColorMultiply the child's start colour by the parent particle's colour. Default false.
uint32_tmaxEventsPerFrameCap on events handled per frame, so a mass death cannot spawn an unbounded burst. Default 256.
int32_tchildSlotIndex into the owning emitter's children, set when the scene resolves the emitter; -1 until then (the module does nothing). Default -1.

Public functions

ReturnsNameDescription
voidOnUpdateRange
const char*GetTypeName
Scope<ParticleModule>Clone
const char*TriggerToString
EParticleEventTypeTriggerFromString

Function details

OnUpdateRange

C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) override

GetTypeName

C++
const char* GetTypeName() const override

Clone

C++
Scope<ParticleModule> Clone() const override

TriggerToString

C++
static const char* TriggerToString(EParticleEventType trigger)

TriggerFromString

C++
static EParticleEventType TriggerFromString(const std::string& text)
Generated from Particles/ParticleModule.h via particles.json · Oct 31, 2026Version 1.0.0