Documentation

Support

Unity Lite

Open Unity Lite

Unity Lite

When node

Trigger the node when a specific event occurs, such as when the scene starts or when a user clicks on an object.
Read time 1 minuteLast updated 2 days ago

Use the When node to listen for specific events in your Logic script. When the specified event occurs, the node triggers and allows connected nodes to execute. Attach an Event node to listen for when that event fires. For example, you can use the Key Pressed node to listen for key presses.

Sockets

Socket

Type

Description

Condition
bool, Event
The event to listen for. For example, Key Pressed, Collision. When the event returns true, the connected nodes execute.
Event
Event
(output)
Connect the node you want to trigger when the Condition returns true.