FNiagaraEmitterInstance::CalculateEventSpawnCount

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

Windows
MacOS
Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Classes/NiagaraEmitterInstance.h

Include

#include "NiagaraEmitterInstance.h"

Source

/Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraEmitterInstance.cpp

Syntax

uint32 CalculateEventSpawnCount
(
    const FNiagaraEventScriptProperties & EventHandlerProps,
    TArray< int32, TInlineAllocator< 16 >> & EventSpawnCounts,
    FNiagaraDataSet * EventSet
)

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss