Choose your operating system:
Windows
macOS
Linux
| FNode
|
Module |
|
Header |
/Engine/Plugins/Experimental/GeometryFlow/Source/GeometryFlowCore/Public/BaseNodes/SwitchNode.h |
Include |
#include "BaseNodes/SwitchNode.h" |
template<typename T, int NumInputs, int StorageTypeIdentifier>
class TSwitchNode : public UE::GeometryFlow::FNode
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 GeometryFlow Graph. Only the active Input is evaluated.
The number of inputs is defined in the template type, eg TSwitchNode<FDynamicMesh3, 3, (int)EMeshProcessingDataTypes::DynamicMesh> is a switch node with 3 possible inputs. Dynamic number of inputs cannot be easily supported without changes at the graph evaluation level.
Use UpdateSwitchValue() to select the active switch Input
Name | Description | ||
---|---|---|---|
|
SwitchIndex |
Name | Description | |
---|---|---|
|
TSwitchNode() |
Name | Description | ||
---|---|---|---|
|
const FStrin... |
InParamValue ( |
|
|
const FStrin... |
OutParamValue() |
|
|
UpdateSwitchInputIndex ( |
This function is used to update the Input Index, ie select which Output will be provided. |
Name | Description | ||
---|---|---|---|
|
CollectRequirements ( |
Determine which Inputs are required for the desired Output. |
|
|
Evaluate ( |
Name |
Description |
---|---|
DataContainerType |