Skip to main content
Up and Coming
May 21, 2015

Can't test Oculus in the Unity Editor any longer as of 0.6.0

Hello,

Is this on purpose? I now get the following error when i launch my game in the editor:
VR direct mode rendering is not supported in the editor. Please use extended mode or build a stand-alone player.


This has made it monstrously hard to test the UI in my game. Is there a new methodology i need to be following?
    This topic has been closed for replies.

    16 replies

    Inspiring
    June 3, 2015
    It will be fixed and work like you want with Unity's built-in VR support. Should be coming soon.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Inspiring
    June 3, 2015
    great, thanks Cyber!
    Up and Coming
    June 3, 2015
    In the meantime, just remove lines 521-530 in OVRManager.cs to enable tracking and distorted view in the editor in Direct Mode again.

    #if UNITY_EDITOR
    // Only allow VR in the editor in extended mode.
    uint caps = capiHmd.GetDesc().HmdCaps;
    uint mask = caps & (uint)HmdCaps.ExtendDesktop;
    isVRPresent = (mask != 0);
    if (!isVRPresent)
    Debug.LogWarning("VR direct mode rendering is not supported in the editor. Please use extended mode or build a stand-alone player.");
    #endif
    ______________________ mySite www.darkfield-vr.com
    Up and Coming
    June 4, 2015
    "Podden" wrote:
    In the meantime, just remove lines 521-530 in OVRManager.cs to enable tracking and distorted view in the editor in Direct Mode again.

    #if UNITY_EDITOR
    // Only allow VR in the editor in extended mode.
    uint caps = capiHmd.GetDesc().HmdCaps;
    uint mask = caps & (uint)HmdCaps.ExtendDesktop;
    isVRPresent = (mask != 0);
    if (!isVRPresent)
    Debug.LogWarning("VR direct mode rendering is not supported in the editor. Please use extended mode or build a stand-alone player.");
    #endif


    Careful on the line numbers just look for that code snippet. Mine didn't happen to be the 521-530 range it was a little before that.
    Up and Coming
    June 4, 2015
    Whoops, sorry. Maybe I've already adjusted something else :lol:
    ______________________ mySite www.darkfield-vr.com
    Up and Coming
    June 8, 2015
    Thanks Podden!! that did the trick!!