Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

SceneManager.LoadSceneAsync and lightmap/GI issues (5.3.0f2)

Discussion in '5.3 Beta' started by variablestatekieran, Nov 27, 2015.

  1. variablestatekieran

    variablestatekieran

    Joined:
    Jun 12, 2015
    Posts:
    26
    Hi, I'm attempting to remove loading pauses from my game by loading the next scene additively in the background while the first is being played. However, I am running into issues with the lightmaps/GI.

    As soon as the next scene is loaded, i turn off all it's parent gameobjects until they are required later.
    However, the scene's lighting settings and lightmaps seem to be applied straight away when the scene finishes loading.
    I would prefer to control them manually and turn them on and off when needed, as i can do with it's gameobjects.

    Is there a way I can control when a scene's lighting settings are applied after loading it asynchronously?
     
  2. variablestatekieran

    variablestatekieran

    Joined:
    Jun 12, 2015
    Posts:
    26
    I'm also getting error messages when the 2nd scene is finished loading:

    !m_UpdateManager->HasSystem (guid)
    Error adding system: Failed to allocate system.
    !m_UpdateManager->HasSystem (guid)
    Error adding system: Failed to allocate system.
    ...
    GI output for inputsystem: 25116a3e93dc2545b0f617e8560cd3a1 (c5fa902d3de70f50001ba2251885bfa2) is missing.

    and on the 3rd, 4th 5th scene etc.

    m_Systems.empty() || !m_Scenes.empty()
    !m_UpdateManager->HasSystem (Hash128ToGuid (iter->guid))
    !m_UpdateManager->HasSystem (Hash128ToGuid (iter->guid))
    ...

    Any help would be greatly appreciated!
     
  3. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    We fixed a couple more bugs with multi-scene baking in 5.3RC3. it would be great if you can check again with it, and if that does not fix it, we would love to have a bug reported with a project where this issues reproduce.

    Thanks.
     
  4. variablestatekieran

    variablestatekieran

    Joined:
    Jun 12, 2015
    Posts:
    26
    Cheers, will do.
     
  5. variablestatekieran

    variablestatekieran

    Joined:
    Jun 12, 2015
    Posts:
    26
    Just submitted a bug report with an example project attached.
    Case #749008/748111

    Thanks! :)