UNiagaraGraph::SynchronizeScriptVariable

Synchronize all the properties of DestScriptVar to those of SourceScriptVar, as well as propagating those changes through the graph (pin variable names and default values on pins.) If DestScriptVar is not set, find a script variable with the same key as the SourceScriptVar.

Windows
MacOS
Linux

References

Module

NiagaraEditor

Header

/Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/NiagaraGraph.h

Include

#include "NiagaraGraph.h"

Source

/Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Private/NiagaraGraph.cpp

Syntax

bool SynchronizeScriptVariable
(
    const UNiagaraScriptVariable * SourceScriptVar,
    UNiagaraScriptVariable * DestScriptVar,
    bool bMarkGraphRequiresSync
)

Remarks

Synchronize all the properties of DestScriptVar to those of SourceScriptVar, as well as propagating those changes through the graph (pin variable names and default values on pins.) If DestScriptVar is not set, find a script variable with the same key as the SourceScriptVar. ' Returns bool to signify if DestScriptVar was modified.

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