When node
Trigger the node when a specific event occurs, such as when the scene starts or when a user clicks on an object.
阅读时间1 分钟最后更新于 2 天前
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 | | The event to listen for. For example, Key Pressed, Collision. When the event returns true, the connected nodes execute. |
| Event | | Connect the node you want to trigger when the Condition returns true. |