- Home /
Execute script of parent first
i have a prefab that cointains some objects. It is important that the start method from the script assigned to the prefab to be executed before its children start method from their scripts. How can i do so?
found out about that, i should have used awake: http://answers.unity3d.com/questions/10189/what-is-the-general-use-of-awake-start-update-fixe.html
Answer by poncho · Oct 03, 2012 at 03:40 PM
well, if awake dont work well for you, you can execute child script from parent's script after everything you want
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
cloned game object wont call script right... 2 Answers
How to find a prefab in another scene? 1 Answer
very weird NullReferenceException error causeing one script to break another 2 Answers
How do I render a prefab without any scripts/components running? 3 Answers