I have Unity 5.1 and the latest runtime (0.6.0), my project has “Virtual Reality Supported” on and my oculus rift is in “extended mode” + “maximize on play” but nothing change when i hit play… the editor does not display anything in the rift.
My rift is well working with others demo, including the oculus demo showcase.
It’s now 3 hours that i’m tring to find out what’s wrong ! Do you what i missed ?
@Samsson If you have changed the VRSettings.loadedDevice to VRDeviceType.None, even though you have VirtualRealityEnabled it will be set to none. Try checking the loadedDevice to see if it is set to Oculus in a start method of one of your scripts. Also check if VRSettings.enabled is true. If both are set to the correct value, try closing the Editor and deleting the project settings and then Reopen the Editor and recheck VirtualRealityEnabled.
Did you set the lighting to Gamma? Make sure Stereoscopic rendering is also not toggled on. Stereo rendering automatically happens. That toggle is actually for VRDeviceType.stereo.
I’ve seen this quite a few times - but what reliable fixes this for me is switching “Virtual Reality Supported” off in the editor, and then switching it on again. A few times I had to reboot my machine to make it work … but that was rare (and still during beta).
Also, for me, both Extended Mode and Direct to Rift Mode do work … but it seemed as if Unity is using “Direct Mode” even when I have the mode set to Extended Mode in the settings (which, if true, isn’t really a problem - extended mode is just trouble IMHO that you really only want to use if you have no other option).
I uptated to Unity 5.1.1, still the same problem : doesn’t works in editor or in build.
I have this error :
Failed to load ‘C:/Program Files/Unity/Editor/Data/VR/OVRPlugin.dll’ with error 'The operation was successful
', GetDllDirectory returned ‘’. If GetDllDirectory returned non empty path, check that you’re using SetDirectoryDll correctly.
This thread says that it could be related to missing VC redistributable dependencies. Oculus does link against VC 2013 – try what they suggest and install the 32 and 64 bit versions of the redistributable.
Edit: Here’s a link to what you need to install.
Edit: Confirmed that this has fixed some other people’s issues with this same error.