Search Unity

Display a loading screen when changing scenes?

Discussion in 'Editor & General Support' started by CloudyVR, Nov 7, 2020.

  1. CloudyVR

    CloudyVR

    Joined:
    Mar 26, 2017
    Posts:
    715
    My game uses Unity 2019.4 and the SteamVR plugin. I use scene Assetbundles for the various levels (and some scenes are hosted online) and sometimes take a few seconds to load. During this time I would like to display a simple loading screen to the user (similar to theLab or VRChat).

    Is there a way to display a very simple "loading scene" when changing scenes so the VR player may see a textured background and info/status panels during the time the new scene is being loaded?

    Currently I use
    SteamVR.instance.compositor.FadeToColor
    in a coroutine during scene changes so the player only see a solid color and doesn't notice the game freeze - but I would like a more elegant approach and I see many professional VR titles doing similar, I would really like to learn how to add a loading scene to my VR Unity games!
     
    Last edited: Nov 7, 2020