Event Execution Order
Udon and Unity events are executed in a specific order. Here's how!
Udon and Unity have built-in events that are automatically called if you include them in your scripts. For example, the
Start() event runs once for every script, and the
Update() event runs once per frame. When you're writing Udon scripts, it's helpful to know which of these events happen first.
Unity provides an (incomplete) list of built-in events, many of which are also available in VRChat. https://docs.unity3d.com/Manual/ExecutionOrder.html
The following diagram shows the execution order of the most important events available in Udon and Unity.
Click on an event to open its documentation page.
Unity and VRChat updates may change the event execution order depicted above.
Not all events are listed, and some events may be executed in a different order depending on circumstances (being an object's owner, joining a world late, etc.)
Updated about 2 months ago