- Home /
Script not executed when upgrading to Unity 4.3
Hi,
So I upgraded my 3.5 project to Unity 4.3. Seems to work fine except one issue.
In the first scene I only have the Main Camera with two scripts attached. A and B.
Script A has some code is "Awake()" that seems to execute like it should. At the end of the Awake function it calls "Application.LoadLevel(1) to lead to main meny of my game.
Script B has some code in "Start()" that is completely ignored. However if I put it in "Awake()" it's working.
I am guessing it doesn't work because Awake() in script A loads another level before Start() in script B is executed? But this worked fine in Unity 3.5? Whats changed?
And why does it work when I put all code in Awake() in both scripts? I mean since it loads the next scene in script A, it shouldn't have time to execute script B at all? Or what I am not understanding?
I read somewhere that something has changed in regards to order of script execution, but I am not sure I follow. Anyone knows and can explain to me exactly what changed, and how it works now?
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Manage the script execution order, how? 1 Answer
Why is the order of parent and child different depending on where you select them? 1 Answer
Advancing through scene elements? 1 Answer
How to implement "PreUpdate" function 4 Answers