Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Disable VR (HTC Vive) for specific scene?

$
0
0
I have a game that is played with VR but I also have a map editor in the game. I want the map editor to be played like a normal non-VR game using your mouse and keyboard. Does anyone knows how I can disable the HTC Vive/SteamVR with code?

I have tried the following but it doesn't do anything.
Code (CSharp):
  1. UnityEngine.VR.VRSettings.enabled = false;
  2. SteamVR.enabled = false;
I also tried this but it crashes Unity:
Code (CSharp):
  1. OpenVR.Shutdown();
The reason I want to disable it...

Disable VR (HTC Vive) for specific scene?

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>