- Home /
How to understand the last paragraph of Start() API
the last paragraph of Start() API-----
“Where objects are instantiated during gameplay, their Awake function will naturally be called after the Start functions of scene objects have already completed.”
How to understand?
Answer by whydoidoit · Mar 04, 2014 at 09:46 AM
It's saying that anything in the scene to start with will have it's Awake and then it's Start function called. If you instantiate a prefab after the scene has started (or during some scene item's Start or Awake) and then it will have its Awake called, followed by its Start, but that how that relates to the Awake and Start of any other item is dependent on the order in which things are created.
So while Awake happens for all objects in a scene before any of them get Start - if you make things later then many existing Awake and Start functions will have already completed.
Hmmm, it's an easy concept when you get it, but kinda hard to write down!
Your answer
Follow this Question
Related Questions
Can't understand lightmapping 3 Answers
Understanding UI Logic 0 Answers
Can anyone explain the decal scripts of the BootCamp Demo? 1 Answer
make my jump anim complete before walk anim starts? 2 Answers
Need help to understand code! 1 Answer