- Home /
Order of update execution
I have found the documentation on execution order, which is really helpful. However, what it doesn't say is in which order a number of Update() functions are executed. This can obviously be important as each update can change things that then affect the next update.
They seem to be executed in reverse of the order in which the objects are in the hierarchy pane, or possibly with the newest created object first? Is this true or is it more complex than that?
Answer by Jesse Anders · Apr 23, 2011 at 08:44 AM
It's undefined. If you need a specific update order, you'll need to manage it yourself (e.g. by having a single 'game manager' object that updates the other game objects in the scene in an order you specify).
this is correct. also you can do a LateUpdate() to add 1 layer of order of execution.
How to manage Object Update yourself in Unity? (easy to say)
Answer by dvulanov · Oct 26, 2013 at 08:30 PM
You can order script execution in the Inspector. http://docs.unity3d.com/Documentation/Components/class-ScriptExecution.html
Your answer
Follow this Question
Related Questions
Substitute to awake when working with StateMachines? 0 Answers
In what order do the Unity functions execute during each frame? 1 Answer
A list of commands that will wait before running the next 2 Answers
When are RPC functions called (execution order)? 0 Answers
How to get actions in multiple instanced objects to occur in order 1 Answer