sam8890 / unity-vr-overlay

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();

About

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

License:GNU General Public License v3.0


Languages

Language:C# 100.0%