Use the Toggle to alternate between two events. Each time the node is executed, its state switches between ON and OFF, and the respective output will send a signal. The default start state of the node is OFF.
📢 Note: When the toggle is executed, it first sends the signal based on the current state. Only after this the node's state changes.
Execute | Executes the node and changes its state |
↳ On Start | Executes the node at the start of the game and changes its state |
Enabled | Enable or disable the node. Disabled nodes cannot be executed |
Start ON | Ensures that the state of the Toggle is ON at the start of the game |
Output when ON | Sends a signal when the Toggle is ON |
Output when OFF | Sends a signal when the Toggle is OFF |
Here's a link to a demo that shows how to use the Toggle node: