Index Switch
Last updated
Last updated
The Index Switch Node takes an Int as input and compares it to the value ofIndex: value
, returning true or false. This could be used, for example, for enabling or disabling features in a User Interface based on the output of a function.
Scope: Project, Scene, Function, Prefab.
Attribute | Type | Description |
---|---|---|
| Drop-down | The Index that corresponds to |
| Drop-down | The number of Index outputs. In the sample image there are two |
Input | Type | Description |
---|---|---|
Pulse Input (►) | Pulse | A standard Input Pulse, to trigger the execution of the Node. |
| Int | The Integer to be compared. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Bool | The Index that is being compared to the Integer Input. |
| Bool | The default Index which is set in Inputs. |