Module |
|
Header |
/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraEmitterInstance.h |
Include |
#include "NiagaraEmitterInstance.h" |
Source |
/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraEmitterInstance.cpp |
uint32 CalculateEventSpawnCount
(
const FNiagaraEventScriptProperties & EventHandlerProps,
TArray< int32, TInlineAllocator< 16 >> & EventSpawnCounts,
FNiagaraDataSet * EventSet
)
Calculate total number of spawned particles from events; these all come from event handler script with the SpawnedParticles execution mode We get the counts ahead of event processing time so we only have to allocate new particles once TODO: augment for multiple spawning event scripts