Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Is there anyway to delay the call to Awake/Start until all async additive scenes are loaded?

Discussion in 'Scripting' started by majeric, Sep 22, 2020.

  1. majeric

    majeric

    Joined:
    Aug 17, 2010
    Posts:
    88
    No matter how much I arrange async additive loading and using the allowSceneActivation is used, it seems to call start before all the scenes are loaded.

    Is there a common pattern for handling the initialization of a set of scenes after they are all loaded?
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    637
    skip start, and awake, write your own function to manage your procedures, and control it with a bool? Just a quick thought.

    Tip : Start can be a coroutine...
    WaitUntil(() => condition);
     
  3. majeric

    majeric

    Joined:
    Aug 17, 2010
    Posts:
    88
    Yeah. I guess. Frustrating though. I wished this worked within their framework.