Navigation
API > API/Plugins > API/Plugins/GeometryFlowCore > API/Plugins/GeometryFlowCore/BaseNodes
Inheritance Hierarchy
- FNode
- TSwitchNode
References
| Module | GeometryFlowCore |
| Header | /Engine/Plugins/Experimental/GeometryFlow/Source/GeometryFlowCore/Public/BaseNodes/SwitchNode.h |
| Include | #include "BaseNodes/SwitchNode.h" |
Syntax
template<typename T, int NumInputs, int StorageTypeIdentifier>
class TSwitchNode : public UE::GeometryFlow::FNode
Remarks
TSwitchNode selects one of N inputs and provides it as an Output. This allows for a minimal amount of branching / control-flow in a fixed GeometryFlowGraph. Only the active Input is evaluated.
The number of inputs is defined in the template type, eg TSwitchNode
Use UpdateSwitchValue() to select the active switch Input
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | SwitchIndex |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TSwitchNode () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FString | InParamValue
(
int32 InputNum |
||
| const FString | |||
| void | UpdateSwitchInputIndex
(
const int32& NewSwitchIndex |
This function is used to update the Input Index, ie select which Output will be provided. |
Overridden from FNode
| Type | Name | Description | |
|---|---|---|---|
| void | CollectRequirements
(
const TArray< FString >& Outputs, |
Determine which Inputs are required for the desired Output. | |
| void | Evaluate
(
const FNamedDataMap& DatasIn, |
Typedefs
| Name | Description |
|---|---|
| DataContainerType |