Event Execution Order

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(Removing all content from page)
m (Reverted edits by Joseph05408 (Talk); changed back to last version by AndyKorth)
Line 1: Line 1:
 +
Note: Also see the [[Updated Event Execution Order]].
  
 +
Events in your scripts are executed in a specific order:
 +
 +
* All '''Awake''' calls
 +
* All '''Start''' calls
 +
*While stepping towards variable delta time:
 +
** All '''FixedUpdate''' functions
 +
** Physics simulation
 +
** '''OnEnter/Exit/Stay''' trigger functions
 +
** '''OnEnter/Exit/Stay''' collision functions
 +
* Rigidbody interpolation applies transform.position and rotation
 +
* '''OnMouseDown/OnMouseUp''' etc. events
 +
* All '''Update''' functions (With Update before OnGUI)
 +
* Animations are advanced, blended and applied to transform
 +
* All '''LateUpdate''' functions
 +
* Rendering
 +
 +
== References ==
 +
 +
This information was derived from [http://forum.unity3d.com/viewtopic.php?t=2719 this thread] in the Unity forum.

Revision as of 19:12, 19 October 2009

Note: Also see the Updated Event Execution Order.

Events in your scripts are executed in a specific order:

  • All Awake calls
  • All Start calls
  • While stepping towards variable delta time:
    • All FixedUpdate functions
    • Physics simulation
    • OnEnter/Exit/Stay trigger functions
    • OnEnter/Exit/Stay collision functions
  • Rigidbody interpolation applies transform.position and rotation
  • OnMouseDown/OnMouseUp etc. events
  • All Update functions (With Update before OnGUI)
  • Animations are advanced, blended and applied to transform
  • All LateUpdate functions
  • Rendering

References

This information was derived from this thread in the Unity forum.

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox