Toggle
Last updated
Last updated
The Toggle Node holds a Boolean state, which alternates between true and false every time the input Pulse is triggered. This can be thought of as a light switch, which alternates a light bulb's state between being on and off.
Scope: Project, Scene, Function, Prefab.
State on Technopedia.
Attribute | Type | Description |
---|---|---|
Input | Type | Description |
---|---|---|
Output | Type | Description |
---|---|---|
Value
Bool
The default value/state of the Node, before it is executed.
Pulse Input (►)
Pulse
A standard input Pulse, to trigger the execution of the Node.
Pulse Output (►)
Pulse
A standard output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution.
Is On
Bool
Whether or not the value/state of the Node is currently true.