FNiagaraSystemUpdateContext

Helper for reseting/reinitializing Niagara systems currently active when they are being edited.

Windows
MacOS
Linux

References

Module

Niagara

Header

/Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraCommon.h

Include

#include "NiagaraCommon.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)()
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

Name Description

Public function

FNiagaraSystemUpdateContext()

Public function

FNiagaraSystemUpdateContext

(
    FNiagaraSystemUpdateContext& Other
)

Public function

FNiagaraSystemUpdateContext

(
    UNiagaraComponent* Component,
    bool bReInit,
    bool bInDestroyOnAdd,
    bool bInOnlyActive,
    bool bInDestroySystemSim
)

Public function

FNiagaraSystemUpdateContext

(
    const UNiagaraSystem* System,
    bool bReInit,
    bool bInDestroyOnAdd,
    bool bInOnlyActive,
    bool bInDestroySystemSim
)

Public function

FNiagaraSystemUpdateContext

(
    const UNiagaraEmitter* Emitter,
    bool bReInit,
    bool bInDestroyOnAdd,
    bool bInOnlyActive,
    bool bInDestroySystemSim
)

Public function

FNiagaraSystemUpdateContext

(
    const UNiagaraScript* Script,
    bool bReInit,
    bool bInDestroyOnAdd,
    bool bInOnlyActive,
    bool bInDestroySystemSim
)

Public function

FNiagaraSystemUpdateContext

(
    const UNiagaraParameterCollection&...,
    bool bReInit,
    bool bInDestroyOnAdd,
    bool bInOnlyActive,
    bool bInDestroySystemSim
)

Destructors

Functions

Name Description

Public function

void

 

Add

(
    const UNiagaraParameterCollection&...,
    bool bReInit
)

Public function

void

 

Add

(
    const UNiagaraScript* Script,
    bool bReInit
)

Public function

void

 

Add

(
    const UNiagaraEmitter* Emitter,
    bool bReInit
)

Public function

void

 

Add

(
    UNiagaraComponent* Component,
    bool bReInit
)

Public function

void

 

Add

(
    const UNiagaraSystem* System,
    bool bReInit
)

Public function

void

 

AddAll

(
    bool bReInit
)

Adds all currently active systems.

Public function

void

 

CommitUpdate()

Handles any pending reinits or resets of system instances in this update context.

Public function

FCustomWorkD...

 

GetPostWork()

Public function

FCustomWorkD...

 

GetPreWork()

Public function

void

 

SetDestroyOnAdd

(
    bool bInDestroyOnAdd
)

Public function

void

 

SetDestroySystemSim

(
    bool bInDestroySystemSim
)

Public function

void

 

SetOnlyActive

(
    bool bInOnlyActive
)

Typedefs

Name

Description

FCustomWorkDelegate

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