Navigation
API > API/Plugins > API/Plugins/NiagaraEditor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UEdGraph
- UNiagaraGraph
References
Module | NiagaraEditor |
Header | /Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/NiagaraGraph.h |
Include | #include "NiagaraGraph.h" |
Syntax
UCLASS&40;MinimalAPI&41;
class UNiagaraGraph : public UEdGraph
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bNeedNumericCacheRebuilt | |
![]() |
TMap< TPair< FGuid, UEdGraphNode * >, FNiagaraTypeDefinition > | CachedNumericConversions |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UNiagaraGraph
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
FDelegateHandle | AddOnGraphNeedsRecompileHandler
(
const FOnGraphChanged::FDelegate& InHandler |
Add a listener for OnGraphNeedsRecompile events |
![]() |
UNiagaraScriptVariable * | AddParameter
(
const FNiagaraVariable& Parameter, |
Adds parameter to the VariableToScriptVariable map. |
![]() |
UNiagaraScriptVariable * | AddParameter
(
const FNiagaraVariable& Parameter, |
Adds parameter to the VariableToScriptVariable map. |
![]() |
UNiagaraScriptVariable * | AddParameter
(
const UNiagaraScriptVariable* InScriptVar |
Adds parameter to the VariableToScriptVariable map. |
![]() |
void | AddParameterReference
(
const FNiagaraVariable& Parameter, |
Adds an FNiagaraGraphParameterReference to the ParameterToReferenceMap. |
![]() ![]() |
bool | AppendCompileHash
(
FNiagaraCompileHashVisitor* InVisitor, |
|
![]() ![]() |
void | BuildTraversal
(
TArray< class UNiagaraNode* >& OutNodesTraversed, |
Get an in-order traversal of a graph by the specified target output script usage. |
![]() ![]() |
void | BuildTraversal
(
TArray< class UNiagaraNode* >& OutNodesTraversed, |
Get an in-order traversal of a graph by the specified target output script usage. |
![]() |
void | ChangeParameterType
(
const TArray< FNiagaraVariable >& ParametersToChange, |
Changes the type of existing graph parameters. |
![]() ![]() |
const TMap< FNiagaraVariable, FInputPinsAndOutputPins > | Helper to get a map of variables to all input/output pins with the same name. | |
![]() |
void | In order to support reducing the number of times we need to fully generate the CompileId this function is introduced to work with LastBuiltScriptVersionId & bHasValidLastBuiltScriptVersionId. | |
![]() |
void | Rebuilds the internally stored ParameterRefrenceMap if it has been marked dirty. | |
![]() |
void | CopyCachedReferencesMap
(
UNiagaraGraph* TargetGraph |
|
![]() |
UNiagaraGraph * | CreateCompilationCopy
(
const TArray< ENiagaraScriptUsage >& CompileUsages |
Creates a transient copy of this graph for compilation purposes. |
![]() |
UNiagaraScriptVariable * | CreateScriptVariableInternal
(
const FNiagaraVariable& Parameter, |
|
![]() ![]() |
void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
|
![]() ![]() |
UNiagaraNodeOutput * | FindEquivalentOutputNode
(
ENiagaraScriptUsage TargetUsageType, |
Implements a globally unique identifier. |
![]() ![]() |
void | FindEquivalentOutputNodes
(
ENiagaraScriptUsage TargetUsageType, |
|
![]() ![]() |
void | FindInputNodes
(
TArray< class UNiagaraNodeInput* >& OutInputNodes, |
Finds input nodes in the graph with. |
![]() ![]() |
UNiagaraNodeOutput * | FindOutputNode
(
ENiagaraScriptUsage TargetUsageType, |
Find the first output node bound to the target usage type. |
![]() ![]() |
void | FindOutputNodes
(
ENiagaraScriptUsage TargetUsageType, |
Find all output nodes. |
![]() ![]() |
void | FindOutputNodes
(
TArray< UNiagaraNodeOutput* >& OutputNodes |
Find all output nodes. |
![]() ![]() |
UEdGraphPin * | FindParameterMapDefaultValuePin
(
const FName VariableName, |
Walk through the graph for an ParameterMapGet nodes and see if any of them specify a default for VariableName. |
![]() ![]() |
TArray< UEdGraphPin * > | FindParameterMapDefaultValuePins
(
const FName VariableName |
Find all matching default pins for VariableName, irrespective of usage. |
![]() ![]() |
TArray< FNiagaraVariable > | FindStaticSwitchInputs
(
bool bReachableOnly, |
Returns a list of variable inputs for all static switch nodes in the graph. |
![]() |
void | ForceBaseId
(
ENiagaraScriptUsage InUsage, |
Forces the base compile id for the supplied script. |
![]() |
void | ||
![]() |
void | GatherExternalDependencyData
(
ENiagaraScriptUsage InUsage, |
Gather all the change ids of external references for this specific graph traversal. |
![]() ![]() |
const FScriptVariableMap & | ||
![]() |
FScriptVariableMap & | ||
![]() ![]() |
void | GetAllReferencedGraphs
(
TArray< const UNiagaraGraph* >& Graphs |
Get all referenced graphs in this specified graph, including this graph. |
![]() ![]() |
void | GetAllScriptVariableGuids
(
TArray< FGuid >& VariableGuids |
|
![]() ![]() |
void | GetAllVariables
(
TArray< FNiagaraVariable >& Variables |
|
![]() ![]() |
FGuid | GetBaseId
(
ENiagaraScriptUsage InUsage, |
Gets the current base id associated with the output node traversal specified by InUsage and InUsageId. |
![]() |
FNiagaraTypeDefinition | GetCachedNumericConversion
(
const UEdGraphPin* InPin |
|
![]() ![]() |
FGuid | GetChangeID () |
Each graph is given a Change Id that occurs anytime the graph's content is manipulated. |
![]() ![]() |
TArray< FGuid > | GetChildScriptVariableGuidsForInput
(
FGuid VariableGuid |
|
![]() ![]() |
TArray< UNiagaraScriptVariable * > | GetChildScriptVariablesForInput
(
FGuid VariableGuid |
|
![]() ![]() |
FNiagaraCompileHash | GetCompileDataHash
(
ENiagaraScriptUsage InUsage, |
Gets the current compile data hash associated with the output node traversal specified by InUsage and InUsageId. |
![]() ![]() |
FNiagaraCompileHash | GetCompileReferencedDataHash
(
ENiagaraScriptUsage InUsage, |
Gets the current reference data hash associated with the output node traversal specified by InUsage and InUsageId (Static variables & switches). |
![]() ![]() |
TOptional< ENiagaraDefaultMode > | GetDefaultMode
(
const FNiagaraVariable& Variable, |
|
![]() ![]() |
FString | GetFunctionAliasByContext
(
const FNiagaraGraphFunctionAliasContext& FunctionAliasContext |
If this graph is the source of a function call, it can add a string to the function name to discern it from different function calls to the same graph. |
![]() ![]() |
TOptional< FNiagaraVariableMetaData > | GetMetaData
(
const FNiagaraVariable& InVar |
Gets the meta-data associated with this variable, if it exists. |
![]() ![]() |
const UEdGraphSchema_Niagara * | ||
![]() ![]() |
int32 | GetOutputNodeVariableIndex
(
const FNiagaraVariable& Attr |
Returns the index of this variable in the output node of the graph. |
![]() ![]() |
void | GetOutputNodeVariables
(
TArray< FNiagaraVariable >& OutAttributes |
|
![]() ![]() |
void | GetOutputNodeVariables
(
ENiagaraScriptUsage InTargetScriptUsage, |
|
![]() ![]() |
FVersionedNiagaraEmitter | ||
![]() ![]() |
const TMap< FNiagaraVariable, FNiagaraGraphParameterReferenceCollection > & | ||
![]() ![]() |
void | GetParameters
(
TArray< FNiagaraVariable >& Inputs, |
Generates a list of unique input and output parameters for when this script is used as a function. |
![]() ![]() |
bool | GetPropertyMetadata
(
FName PropertyName, |
|
![]() ![]() |
UNiagaraScriptVariable * | GetScriptVariable
(
FNiagaraVariable Parameter |
|
![]() ![]() |
UNiagaraScriptVariable * | GetScriptVariable
(
FGuid VariableGuid |
|
![]() ![]() |
UNiagaraScriptVariable * | GetScriptVariable
(
FName ParameterName |
|
![]() ![]() |
TOptional< FGuid > | GetScriptVariableGuid
(
const FNiagaraVariable& Variable |
|
![]() ![]() |
UNiagaraScriptSource * | GetSource () |
Get the source that owns this graph |
![]() ![]() |
TOptional< int32 > | GetStaticSwitchDefaultValue
(
const FNiagaraVariable& Variable |
|
![]() ![]() |
TOptional< FNiagaraVariable > | GetVariable
(
const FNiagaraVariable& Variable |
|
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | HasVariable
(
const FNiagaraVariable& Variable |
|
![]() |
void | ||
![]() ![]() |
bool | Returns if this graph is for compilation purposes only. | |
![]() ![]() |
bool | IsEmpty () |
Determine if there are any nodes in this graph. |
![]() ![]() |
bool | IsOtherSynchronized
(
const FGuid& InChangeId |
Determine if another item has been synchronized with this graph. |
![]() ![]() |
bool | ||
![]() ![]() |
TOptional< bool > | IsStaticSwitch
(
const FNiagaraVariable& Variable |
|
![]() |
FName | MakeUniqueParameterName
(
const FName& InName |
Go through all known parameter names in this graph and generate a new unique one. |
![]() ![]() |
FName | MakeUniqueParameterNameAcrossGraphs
(
const FName& InName, |
|
![]() |
void | MarkGraphRequiresSynchronization
(
FString Reason |
Identify that this graph has undergone changes that will require synchronization with a compiled script. |
![]() ![]() |
void | MultiFindParameterMapDefaultValuePins
(
TConstArrayView< FName > VariableNames, |
Walk through the graph for an ParameterMapGet nodes and see if any of them specify a default for VariableName. |
![]() |
void | Notifies the graph that a contained data interface has changed. | |
![]() |
void | Signal to listeners that the graph has changed | |
![]() |
FOnDataInterfaceChanged & | Gets a delegate which is called whenever a contained data interfaces changes. | |
![]() |
FOnSubObjectSelectionChanged & | Gets a delegate which is called whenever a custom subobject in the graph is selected | |
![]() |
void | ||
![]() |
void | ||
![]() ![]() |
bool | ReferencesStaticVariable
(
FNiagaraStaticVariableSearchContext& SearchContext |
|
![]() |
void | ||
![]() |
void | Remove a listener for OnGraphNeedsRecompile events | |
![]() |
void | RemoveParameter
(
const FNiagaraVariable& Parameter, |
Remove parameter from map and all the pins associated. |
![]() |
void | RenameAssignmentAndSetNodePins
(
const FName OldName, |
Rename all assignment and map set node pins. |
![]() |
bool | RenameParameter
(
const FNiagaraVariable& Parameter, |
Rename parameter from map and all the pins associated. |
![]() |
bool | RenameParameterFromPin
(
const FNiagaraVariable& Parameter, |
Rename a pin inline in a graph. |
![]() |
bool | RenameStaticSwitch
(
UNiagaraNodeStaticSwitch* SwitchNode, |
|
![]() |
void | ReplaceScriptReferences
(
UNiagaraScript* OldScript, |
|
![]() |
void | ResolveNumerics
(
TMap< UNiagaraNode*, bool >& VisitedNodes, |
|
![]() |
void | ScriptVariableChanged
(
FNiagaraVariable Variable |
|
![]() |
void | SetIsStaticSwitch
(
const FNiagaraVariable& Variable, |
|
![]() |
void | SetMetaData
(
const FNiagaraVariable& InVar, |
Sets the meta-data associated with this variable. |
![]() ![]() |
FName | StandardizeName
(
FName Name, |
|
![]() |
bool | SynchronizeParameterDefinitionsScriptVariableRemoved
(
const FGuid RemovedScriptVarId |
Find a script variable with the same key as RemovedScriptVarId and unmark it as being sourced from a parameter definitions. |
![]() |
void | SynchronizeParametersWithParameterDefinitions
(
const TArray< UNiagaraParameterDefinitions* > TargetDefinitions, |
Synchronize all source script variables that have been changed or removed from the parameter definitions to all eligible destination script variables owned by the graph. |
![]() |
bool | SynchronizeScriptVariable
(
const UNiagaraScriptVariable* SourceScriptVar, |
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. |
Overridden from UEdGraph
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | A change was made to the graph that external parties should take note of. |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BeginDestroy () |
Called before destroying the object. |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Typedefs
Name | Description |
---|---|
FFindInputNodeOptions | |
FOnDataInterfaceChanged | |
FOnGetParameterDefinitionsForDetailsCustomization | |
FOnSubObjectSelectionChanged | |
FScriptVariableMap | These functions are not supported for compilation copies. |