Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated documentation for DefaultExecutionOrder attribute to clarify behavior. #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Tools/Docusaurus/docs/UdonSharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,20 @@ public class Example : UdonSharpBehaviour

## DefaultExecutionOrder

Specifies the order that Update, LateUpdate, and FixedUpdate happen in relative to other UdonSharpBehaviours with an int. All behaviours are at 0 by default, the lower the int, the earlier their update happens. The int can be negative.
Specifies the order that Udon Behaviour events will fire relative to other Udon Behaviours.

Lower values indicate that the event will fire earlier compared to other Udon Behaviours, and higher values indicate that the event will fire later compared to other Udon Behaviours. The execution order value can be negative.

When this attribute is not specified, the default execution order is `0`.

Events affected by execution order are:

* `OnEnable` (called for the first time prior to `Start`)
* `Start`
* `Update`
* `LateUpdate`
* `FixedUpdate`
* `PostLateUpdate`

### Example
```cs
Expand Down
Loading