Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Particles > Spawn > UParticleModuleSpawnBase
- UParticleModuleSpawnBase::GetSpawnAmount()
- UParticleModuleSpawn::GetSpawnAmount()
- UParticleModuleSpawnPerUnit::GetSpawnAmount()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Particles/Spawn/ParticleModuleSpawnBase.h |
Include | #include "Particles/Spawn/ParticleModuleSpawnBase.h" |
virtual bool GetSpawnAmount
&40;
FParticleEmitterInstance &42; Owner,
int32 Offset,
float OldLeftover,
float DeltaTime,
int32 & Number,
float & Rate
&41;
Remarks
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. bool false if the SpawnRate should be ignored. true if the SpawnRate should still be processed.
Parameters
Name | Description |
---|---|
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) |