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
| Type | Name | Description |
|---|---|---|
EParticleEventType | trigger | Default EParticleEventType::Death. |
std::string | childEmitter | |
std::string | childPath | |
uint32_t | spawnCount | Particles spawned into the child per event. Default 5. |
float | probability | Chance each event fires at all, so a dense parent can seed a sparse child. Default 1.0f. |
float | inheritVelocity | Share of the parent particle's velocity added to the child's own. Default 0.0f. |
bool | inheritColor | Multiply the child's start colour by the parent particle's colour. Default false. |
uint32_t | maxEventsPerFrame | Cap on events handled per frame, so a mass death cannot spawn an unbounded burst. Default 256. |
int32_t | childSlot | Index into the owning emitter's children, set when the scene resolves the emitter; -1 until then (the module does nothing). Default -1. |
Public functions
| Returns | Name | Description |
|---|---|---|
void | OnUpdateRange | |
const char* | GetTypeName | |
Scope<ParticleModule> | Clone | |
const char* | TriggerToString | |
EParticleEventType | TriggerFromString |
Function details
OnUpdateRange
C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) overrideGetTypeName
C++
const char* GetTypeName() const overrideClone
C++
Scope<ParticleModule> Clone() const overrideTriggerToString
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