Event Nodes
This is a list of Udon Nodes that are considered "Events".
Your scripts can use events to detect actions and set off chains of action or logic. Input Events have their own special page. To jump to an Event in the graph, click it in the Graph Sidebar.
All below nodes have flow nodes where logic requires it.
More events specifically related to networking are listed on the Network Components page.
Interact
Fired when the local player interacts with this GameObject.
- Players can only interact with GameObjects that have a Collider component and an UdonBehaviour component.
- If you want players to interact with a 2D UI, use VRC Ui Shape and a Button component instead.
OnDrop
Fired when the local player drops this object after being held.
OnPickup
Fired when this object is picked up by the local player.
OnPickupUseDown
Fired when the local player is holding this object presses the "Use" button. Fires when the button is pressed. Requires 'Auto Hold' on Desktop.
OnPickupUseUp
Fired when the local player is holding this object presses the "Use" button. Fires when the button is released. Requires 'Auto Hold' on Desktop.
OnPlayerJoined
Outputs: player - VRC.SDKBase.VRCPlayerApi
Fired when any player joins the instance. Outputs the player that joined.
When you join an instance, you execute OnPlayerJoined for every player in the instance, including yourself. When another player joins your instance, you only execute OnPlayerJoined for the player who joined.
OnPlayerLeft
Event_OnPlayerLeft
Outputs: player - VRC.SDKBase.VRCPlayerApi
Fired when any player in the instance leaves. Outputs the player that left.