- Home /
How to load a scene additive and set as ActiveScene before their Start() methode is called ?
Is it possible to load a scene additive and set as ActiveScene before their Start() methode is called ?
Answer by Tyche10 · May 13, 2016 at 02:03 PM
These functions are all called before the Start() function
First Scene Load
These functions get called when a scene starts (once for each object in the scene).
Awake: This function is always called before any Start functions and also just after a prefab is instantiated. (If a GameObject is inactive during start up Awake is not called until it is made active.)
OnEnable: (only called if the Object is active): This function is called just after the object is enabled. This happens when a MonoBehaviour instance is created, such as when a level is loaded or a GameObject with the script component is instantiated.
OnLevelWasLoaded: This function is executed to inform the game that a new level has been loaded.
Note that for objects added to the scene, the Awake and OnEnable functions for all scripts will be called before Start, Update, etc are called for any of them. Naturally, this cannot be enforced when an object is instantiated during gameplay.
No problem. If this answered your question, feel free to accept the answer ;)
Your answer

Follow this Question
Related Questions
Unity networking, access online scenes variable in network manager 2 Answers
Why unity doesn't have build-in option to select what scene to load first on play ? 2 Answers
Does Unity have an equivalent to CCDirector? 1 Answer
Why does loading the scene not work? 2 Answers
How to stop loading of a scene that's loading using SceneManager.LoadSceneAsync ? 1 Answer