Navigation
API > API/Plugins > API/Plugins/NiagaraEditor
References
| Module | NiagaraEditor |
| Header | /Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/NiagaraParameterMapHistory.h |
| Include | #include "NiagaraParameterMapHistory.h" |
Syntax
template<typename GraphBridge>
struct TNiagaraParameterMapHistory
Remarks
Traverses a Niagara node graph to identify the variables that have been written and read from a parameter map. This class is meant to aid in UI and compilation of the graph. There are several main script types and each one interacts slightly differently with the history depending on context.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FNiagaraDataSetID > | AdditionalDataSetWrites | List of additional DataSets to be written that were encountered during traversal. | |
| bool | bParameterCollectionsSkipped | ||
| TArray< FString > | EmitterNamespacesEncountered | List of emitter namespaces encountered as this parameter map was built. | |
| FParameterCollectionStore | EncounteredParameterCollections | Used parameter collections identified during the traversal. | |
| TArray< FName > | IterationNamespaceOverridesEncountered | List of all the custom iteration source override namespaces encountered | |
| TArray< TTuple< uint32, uint32 > > | MapNodeVariableMetaData | For each node in MapNodeVisitations, record the start index and end index of variables added within the body of the node, i.e. a Get node will record just the values it pulls out directly. | |
| TArray< const FNode * > | MapNodeVisitations | List of nodes that manipulated the parameter map from input to output. | |
| TArray< const FPin * > | MapPinHistory | List of pins that manipulated the parameter map from input to output. | |
| ENiagaraScriptUsage | OriginatingScriptUsage | ||
| TArray< TArray< FString > > | PerVariableConstantDefaultValue | ||
| TArray< TArray< FString > > | PerVariableConstantValue | ||
| TArray< TArray< FReadHistory > > | PerVariableReadHistory | ||
| TArray< FString > | PerVariableWarnings | Are there any warnings that were encountered during the traversal of the graph for a given variable? | |
| TArray< TArray< TModuleScopedPin< FPin > > > | PerVariableWriteHistory | For each variable that was found, identify the pins that wrote to them in order from first to last write. | |
| TMap< FGraphTraversalHandle, FString > | PinToConstantValues | ||
| FGuid | UsageGuid | ||
| FName | UsageName | ||
| TArray< FNiagaraVariableMetaData > | VariableMetaData | The metadata associated with each variable identified during the traversal. | |
| TArray< FNiagaraVariable > | Variables | The variables that have been identified during the traversal. | |
| TArray< FNiagaraVariable > | VariablesWithOriginalAliasesIntact |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddExternalVariable
(
const FNiagaraVariable& InVar |
Add a variable outside the normal get/set node paradigm. | |
| int32 | AddVariable
(
const FNiagaraVariable& InVar, |
Helper to add a variable to the known list for a parameter map. | |
| uint32 | BeginNodeVisitation
(
const FNode* Node |
||
| void | ConditionalUpdateAliasedVariable
(
int32 VariableIndex, |
||
| void | EndNodeVisitation
(
uint32 IndexFromBeginNode |
||
| int32 | FindVariable
(
const FName& VariableName, |
Find a variable by both name and type. | |
| int32 | FindVariableByName
(
const FName& VariableName, |
Find a variable by name with no concern for type. | |
| const FInputPin * | GetDefaultValuePin
(
int32 VarIdx |
Get the default value for this variable. | |
| const FOutputNode * | Get the output node associated with this graph. | ||
| const FPin * | GetFinalPin () |
Get the output pin that we traced to build this history object. | |
| const FPin * | Get the pin that added the parameter map to the graph. | ||
| FParameterCollection | IsParameterCollectionParameter
(
FNiagaraVariable& InVar, |
If this is variable is a parameter in one of our tracked collections, return it. | |
| FNiagaraCompilationGraphBridge::FParameterCollection | IsParameterCollectionParameter
(
FNiagaraVariable& InVar, |
||
| FNiagaraCompilationDigestBridge::FParameterCollection | IsParameterCollectionParameter
(
FNiagaraVariable& InVar, |
||
| bool | IsPrimaryDataSetOutput
(
const FNiagaraVariable& InVar, |
Called to determine if a given variable should be output from a script. | |
| bool | IsPrimaryDataSetOutput
(
const FNiagaraVariable& InVar, |
||
| bool | IsVariableFromCustomIterationNamespaceOverride
(
const FNiagaraVariable& InVar |
||
| void | RegisterConstantPin
(
const FGraphTraversalHandle& InTraversalPath, |
||
| void | RegisterConstantVariableWrite
(
const FString& InValue, |
||
| int32 | RegisterParameterMapPin
(
const FPin* Pin |
Called in a depth-first traversal to identify a given Niagara Parameter Map pin that was touched during traversal. | |
| bool | ShouldIgnoreVariableDefault
(
const FNiagaraVariable& Var |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FReadHistory | For each variable that was found, identify the pins that read them from the map in order from first to last read. |
Typedefs
| Name | Description |
|---|---|
| FInputPin | |
| FModuleScopedPin | |
| FNode | |
| FOutputNode | |
| FParameterCollection | |
| FParameterCollectionStore | |
| FPin |