Description

Represents a runtime node in a RuntimeReturnGraph that evaluates an Enum to select the next node. Converted from a SwitchNode. The SwitchRuntimeNode’s generic parameter is the type of Enum it will evaluate.

The SwitchRuntimeNode requires one RgBlackboardVariable<T> matching the type of Enum to be evaluated.

Properties

Property Description
EnumVariableName The name of the RgBlackboardVariable<T> used to evaluate the node.

Methods

Method Description
GetNextNodeIndex First tries to find the corresponding RgBlackboardVariable<T> using the EnumVariableName property. If successful, finds all unique values of the Enum and finds the variable's index in the collection. Returns the value of NextNodeIndices at the index of the variable.