Navigation
API > API/Plugins > API/Plugins/NiagaraEditor
Inheritance Hierarchy
- GraphBridge::FBuilderExtraData
- TNiagaraParameterMapHistoryBuilder
- TNiagaraParameterMapHistoryWithMetaDataBuilder
References
| Module | NiagaraEditor |
| Header | /Engine/Plugins/FX/Niagara/Source/NiagaraEditor/Public/NiagaraParameterMapHistory.h |
| Include | #include "NiagaraParameterMapHistory.h" |
Syntax
template<typename GraphBridge>
class TNiagaraParameterMapHistoryBuilder : public GraphBridge::FBuilderExtraData
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGraphTraversalHandle | ActivePath | ||
| bool | bFilterByScriptAllowList | Whether or not the script allow list is active. | |
| bool | bIgnoreDisabled | Whether or not to ignore disabled nodes. | |
| bool | bIgnoreStaticRapidIterationParameters | Whether or not we want to look up the rapid iteration form of a variable or just the regular form. | |
| bool | bIncludeParameterCollectionInfo | Whether we want to include ParameterCollection information | |
| bool | bShouldBuildSubHistories | ||
| TArray< const FNode * > | CallingContext | Contains the hierarchy of nodes leading to the current graph being processed. | |
| TArray< const FGraph * > | CallingGraphContext | Contains the hierarchy of graphs leading to and including the current graph being processed. | |
| TPimplPtr< FConstantResolver, EPimplPtrMode::DeepCopy > | ConstantResolver | ||
| TArray< FString > | Constants | ||
| TArray< TArray< const FNode * > > | ContextuallyVisitedNodes | List of previously visited nodes per context. | |
| int32 | CurrentGraphDepth | ||
| TArray< FName > | EmitterNameContextStack | Contains the hierarchy of emitter node names leading to the current graph being processed. | |
| TArray< FNiagaraVariable > | EncounterableExternalVariables | ||
| TArray< FString > | EncounteredEmitterNames | ||
| TArray< TArray< FString > > | EncounteredFunctionNames | ||
| TOptional< FGuid > | ExclusiveEmitterHandle | An optional emitter handle guid you can register. | |
| ENiagaraScriptUsage | FilterScriptType | What the script type is that we should be filtering to if the allow list is enabled. | |
| TArray< FName > | FunctionNameContextStack | Contains the hierarchy of function call node names leading to the current graph being processed. | |
| TArray< FHistory > | Histories | Collection of the build histories from the graph traversal. | |
| int32 | MaxGraphDepthTraversal | ||
| FOnNodeVisited | OnNodeVisitedDelegate | ||
| TArray< TMap< const FPin *, int32 > > | PinToConstantIndices | ||
| TArray< TMap< const FPin *, int32 > > | PinToParameterMapIndices | Tracker for each context level of the parameter map index associated with a given pin. | |
| TArray< ENiagaraScriptUsage > | RelevantScriptUsageContext | Keeps track of the script usage at the current context level. | |
| FNiagaraAliasContext | ResolveAliasContext | Resolved alias map for the current context level. Rebuilt by BuildCurrentAliases. | |
| TArray< FName > | ScriptUsageContextNameStack | ||
| TArray< bool > | StaticVariableExportable | ||
| TArray< FNiagaraVariable > | StaticVariables | ||
| FNiagaraStaticVariableSearchContext | StaticVariableSearchContext | ||
| TArray< TMap< FNiagaraVariableBase, int32 > > | VariableToConstantIndices |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | AddOrGetConstantFromValue
(
const FString& Value |
||
| bool | AddParameterCollection
(
FParameterCollection Collection, |
||
| bool | AddParameterCollection
(
FParameterCollection Collection, |
||
| bool | AddParameterCollection
(
FParameterCollection Collection, |
||
| int32 | AddVariableToHistory
(
FHistory& History, |
Virtual wrapper to call correct AddVariable method on the target ParameterMapHistory. | |
| uint32 | BeginNodeVisitation
(
int32 WhichParameterMap, |
||
| void | BeginTranslation
(
const UNiagaraEmitter* Emitter |
||
| void | BeginTranslation
(
const FString& EmitterUniqueName |
||
| void | BeginTranslation
(
const UNiagaraScript* Script |
||
| void | BeginUsage
(
ENiagaraScriptUsage InUsage, |
||
| void | Generate the internal alias map from the current traversal state. | ||
| void | BuildParameterMaps
(
const FOutputNode* OutputNode, |
Called in order to set up the correct initial context for an Output node and invokes the UNiagaraNodeOutput's BuildParameterMapHistory method. | |
| bool | ContextContains
(
ENiagaraScriptUsage InUsage |
||
| int32 | Add a new parameter map to the array. | ||
| void | EnableScriptAllowList
(
bool bInEnable, |
In some cases, we don't want all the variables encountered in a traversal. | |
| void | EndNodeVisitation
(
int32 WhichParameterMap, |
||
| void | EndTranslation
(
const UNiagaraScript* Script |
||
| void | EndTranslation
(
const UNiagaraEmitter* Emitter |
||
| void | EndTranslation
(
const FString& EmitterUniqueName |
||
| void | EndUsage () |
||
| void | EnterEmitter
(
const FString& InEmitterName, |
Record that we have entered an emitter scope. | |
| void | EnterFunction
(
const FString& InNodeName, |
Record that we have entered a new function scope. | |
| void | ExitEmitter
(
const FString& InEmitterName, |
Record that we have exited an emitter scope. | |
| void | ExitFunction
(
const FNode* Node |
Record that we have exited a function scope. | |
| int32 | FindMatchingParameterMapFromContextInputs
(
const FNiagaraVariable& InVar |
Helper method to identify any matching input nodes from the calling context node to the input variable. | |
| int32 | FindMatchingStaticFromContextInputs
(
const FNiagaraVariable& InVar |
||
| int32 | FindStaticVariable
(
const FNiagaraVariable& Var |
||
| ENiagaraScriptUsage | |||
| const FNode * | Get the node calling this sub-graph. | ||
| FString | GetConstant
(
int32 InIndex |
||
| int32 | GetConstantFromInputPin
(
const FInputPin* InputPin |
||
| int32 | GetConstantFromOutputPin
(
const FOutputPin* OutputPin |
||
| int32 | GetConstantFromVariableRead
(
const FNiagaraVariableBase& InVar |
||
| void | GetContextuallyVisitedNodes
(
TArray< const FNode* >& OutVistedNodes |
||
| ENiagaraScriptUsage | |||
| const FString * | Get the string that the "Emitter" namespace maps to currently (if it exists) | ||
| const TArray< FNiagaraVariable > & | |||
| bool | |||
| bool | |||
| const FString * | Get the string that the "Module" namespace maps to currently (if it exists) | ||
| bool | GetNodePreviouslyVisited
(
const FNode* Node |
Has RegisterNodeVisitation been called on the input node yet? | |
| bool | GetPinPreviouslyVisited
(
const FPin* InPin |
Has RegisterNodeVisitation been called yet on the owning node of this pin? | |
| int32 | HandleExternalVariableRead
(
int32 ParamMapIdx, |
||
| void | HandleParameterCollectionRead
(
const FNiagaraVariableBase& InVar, |
||
| int32 | HandleVariableRead
(
int32 ParameterMapIndex, |
Record that a pin reads from the parameter map. | |
| int32 | HandleVariableWrite
(
int32 ParameterMapIndex, |
Record that a variable write to the parameter map. | |
| int32 | HandleVariableWrite
(
int32 ParameterMapIndex, |
Record that a pin writes to the parameter map. | |
| bool | |||
| void | |||
| bool | InTopLevelFunctionCall
(
ENiagaraScriptUsage InFilterScriptType |
Are we currently in a top-level function call context (ie a node in the main graph or an argument into a function for the main graph.) | |
| bool | IsInEncounteredEmitterNamespace
(
const FNiagaraVariable& InVar |
||
| bool | IsInEncounteredFunctionNamespace
(
const FNiagaraVariable& InVar |
||
| bool | IsNamespacedVariableRelevantToScriptType
(
const FNiagaraVariable& InVar, |
Helper method used to take in input script type and determine if the passed in namespaced variable is worth tracking. | |
| bool | Internal helper function to decide whether or not we should use this static variable when merging with other graph traversal static variables, like Emitter graphs merging with System graphs. | ||
| int32 | RegisterConstantFromInputPin
(
const FInputPin* InputPin, |
||
| int32 | RegisterConstantPin
(
int32 WhichConstant, |
||
| int32 | RegisterConstantVariableWrite
(
int32 WhichParamMapIdx, |
||
| void | RegisterDataSetWrite
(
int32 WhichParameterMap, |
Records a write to a DataSet in the appropriate parameter map history | |
| void | RegisterEncounterableVariables
(
TConstArrayView< FNiagaraVariable > Variables |
Register any user or other external variables that could possibly be encountered but may not be declared explicitly. | |
| void | RegisterExternalStaticVariables
(
TConstArrayView< FNiagaraVariable > Variables |
||
| void | RegisterNodeVisitation
(
const FNode* Node |
Called first during a node's visitation during traversal to identify that a node has been visited. | |
| int32 | RegisterParameterMapPin
(
int32 WhichParameterMap, |
Important. | |
| FNiagaraVariable | ResolveAliases
(
const FNiagaraVariable& InVar |
Use the current alias map to resolve any aliases in this input variable name. | |
| void | SetConstantByStaticVariable
(
int32& OutValue, |
||
| void | SetConstantByStaticVariable
(
int32& OutValue, |
||
| void | SetIgnoreDisabled
(
bool bInIgnore |
||
| void | SetIgnoreStaticRapidIterationParameters
(
bool bInIgnore |
||
| bool | ShouldProcessDepthTraversal
(
const FGraph* Graph |
||
| bool | ShouldTrackVariable
(
const FNiagaraVariable& InVar |
Helper function called when variables are added to enable the filtering specified in EnableScriptAllowList. | |
| int32 | TraceParameterMapOutputPin
(
const FOutputPin* OutputPin |
Trace back a pin to whom it was connected to to find the current parameter map to use. | |
| void | VisitInputPin
(
const FInputPin* Pin, |
If we haven't already visited the owning node, do so. | |
| void | VisitInputPins
(
const FNode*, |
If we haven't already visited the owning nodes, do so. |