I'm new to Unity5, and I'm trying to create a simple game.
MonoBehaviour, I receive an Update() function. But I don't know how it works behind the scenes.
My question is, are the Update() functions serialized (called one after the other) or parallelized when many
MonoBehaviours have their own
For example, if I have two scripts with its own Update in each, would the Updates be called at the same time (parallelized) or are they called one after the other (serialized)?
If they are serialized, how do I determine the order?
By default, new MonoBehaviour scripts are executed in whatever order Unity compiles them into. They are not run at the same time, they run one after another.
If you want to specify the execution order, you can do so under:
Edit > Project Settings > Script Execution Order.
Further reading: Execution Order of Event Functions