/unity-vr-overlay

Very simple fade-to-black (and back) overlay system for VR applications (Oculus DK2 tested) in Unity 5.

Primary LanguageC#GNU General Public License v3.0GPL-3.0

Unity VR Overlay

unity-vr-overlay demo gif

Very simple fade-to-black (and back) overlay system for Virtual Reality applications (Oculus DK2 tested) in Unity 5. Useful as a graceful transition for intial environment loading and level switching.

Compatibility

References a Shader from the Oculus VR SDK: "Oculus/Unlit Transparent Color" found in the OVR/Moonlight/Resources folder.

Usage

Drag the LoadingOverlay prefab to your main camera.

Fade in the scene with:

LoadingOverlay overlay = GameObject.Find("LoadingOverlay").gameObject.GetComponent<LoadingOverlay>();
overlay.FadeIn();

Fade out with:

overlay.FadeOut();