Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UParticleModuleSpawnBase
Description
Retrieve the spawn amount this module is contributing. Note that if multiple Spawn-specific modules are present, if any one of them ignores the SpawnRate processing it will be ignored.
Derived Overrides
| Name | GetSpawnAmount |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Particles/Spawn/ParticleModuleSpawnBase.h |
| Include Path | #include "Particles/Spawn/ParticleModuleSpawnBase.h" |
virtual bool GetSpawnAmount
(
const FContext & Context,
int32 Offset,
float OldLeftover,
float DeltaTime,
int32 & Number,
float & Rate
)
bool false if the SpawnRate should be ignored. true if the SpawnRate should still be processed.
Parameters
| Name | Remarks |
|---|---|
| Owner | The particle emitter instance that is spawning. |
| Offset | The offset into the particle payload for the module. |
| OldLeftover | The bit of timeslice left over from the previous frame. |
| DeltaTime | The time that has expired since the last frame. |
| Number | The number of particles to spawn. (OUTPUT) |
| Rate | The spawn rate of the module. (OUTPUT) |