UNiagaraGraph::RenameParameter

Rename parameter from map and all the pins associated.

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 RenameParameter
(
    const FNiagaraVariable & Parameter,
    FName NewName,
    bool bRenameRequestedFromStaticSwitch,
    FName NewScopeName,
    bool * bMerged
)

Remarks

Rename parameter from map and all the pins associated.

Returns

true if the new name was applied.

Parameters

Parameter

Description

Parameter

The target FNiagaraVariable key to lookup the canonical UNiagaraScriptVariable to rename.

NewName

The new name to apply.

bFromStaticSwitch

Whether the target parameter is from a static switch. Used to determine whether to fixup binding strings.

NewScopeName

The new scope name from the FNiagaraVariable's associated FNiagaraVariableMetaData. Used if changing the scope triggered a rename. Applied to the canonical UNiagaraScriptVariable's Metadata.

bMerged

Whether or not the rename ended up merging with a different parameter because the names are the same.

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