Navigation
API > API/Plugins > API/Plugins/Niagara
Defines different usages for a niagara script.
| Name | ENiagaraCompileUsageStaticSwitch |
| Type | enum |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraCommon.h |
| Include Path | #include "NiagaraCommon.h" |
Syntax
enum ENiagaraCompileUsageStaticSwitch
{
Spawn,
Update,
Event,
SimulationStage,
Default,
}
Values
| Name | Remarks |
|---|---|
| Spawn | The script is called during the spawn phase. |
| Update | The script is called during the update phase. |
| Event | The script is called in an event context. |
| SimulationStage | The script is called as part of a simulation stage. |
| Default | The default value if the compiler cannot map the compilation context. |