Navigation
API > API/Plugins > API/Plugins/Niagara
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraCommon.h |
| Include | #include "NiagaraCommon.h" |
Syntax
USTRUCT&40;&41;
struct FNiagaraSystemUpdateContext
Remarks
Helper for reseting/reinitializing Niagara systems currently active when they are being edited. Can be used inside a scope with Systems being reinitialized on destruction or you can store the context and use CommitUpdate() to trigger reinitialization. For example, this can be split between PreEditChange and PostEditChange to ensure problematic data is not modified during execution of a system.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FNiagaraSystemUpdateContext
(
const UNiagaraSystem* System, |
|||
FNiagaraSystemUpdateContext
(
const FVersionedNiagaraEmitter& Emitter, |
|||
FNiagaraSystemUpdateContext
(
const UNiagaraScript* Script, |
|||
FNiagaraSystemUpdateContext
(
const UNiagaraParameterCollection* Collection, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Add
(
const UNiagaraParameterCollection* Collection, |
||
| void | Add
(
const UNiagaraScript* Script, |
||
| void | Add
(
const FVersionedNiagaraEmitter& Emitter, |
||
| void | Add
(
const UNiagaraSystem* System, |
||
| void | AddAll
(
bool bReInit |
Adds all currently active systems. | |
| void | AddSoloComponent
(
UNiagaraComponent* Component, |
||
| void | CommitUpdate () |
Handles any pending reinits or resets of system instances in this update context. | |
| FCustomWorkDelegate & | GetPostWork () |
||
| FCustomWorkDelegate & | GetPreWork () |
||
| void | SetDestroyOnAdd
(
bool bInDestroyOnAdd |
||
| void | SetDestroySystemSim
(
bool bInDestroySystemSim |
||
| void | SetOnlyActive
(
bool bInOnlyActive |
Typedefs
| Name | Description |
|---|---|
| FCustomWorkDelegate |