-
Notifications
You must be signed in to change notification settings - Fork 3
Black Screens During Scene Switching
When the user swaps to a new scene, the program needs to load the scene. This reduces the FPS to zero, and any motion made by the user is not reflected in the program. In order to reduce dissonance between the user's actual movement and what they see in VR, we black out the screen when a new scene is being loaded.
To achieve this effect, place the HeadsetFader prefab anywhere in the scene. I've modifed the OculusLoadLevel script to take the HeadsetFader object as a parameter. Anywhere where this script is called, pass the HeadsetFader to it. As of writing this, the OculusLoadLevel script is attached in the UI button objects.
If the script and object are set up properly, the scene should black out when switching scenes, and reappear after the new scene has loaded. They only need to be set up in the starting scene, but it doesn't hurt to have them in the destination scene.