Skip to main content
New Participant
March 11, 2015

Unity 5 integration - tweak needed in OVR

Hello!

I'm new to both Unity and Oculus but am enjoying the steep (learning) curve!

Quick note - things that built in Unity 4.6 broke in Unity 5.

I got the following error message:

Assets/OVR/Scripts/Util/OVRMainMenu.cs(250,43): error CS0117: `UnityEngine.RenderMode' does not contain a definition for `World'

A quick search revealed the wonderful post (he has definitely sold a book to me - the writer for Manning):

http://rifty-business.blogspot.com/2015 ... ity-4.html

Who notes:

"To get the scene to build, I edited OVRMainMenu.cs and changed:

c.renderMode = RenderMode.World;
to

c.renderMode = RenderMode.WorldSpace;

in the two places where that line occurs."

Worked perfectly for me too...thought I'd share.

Back to work!

:-)

iw
    This topic has been closed for replies.

    4 replies

    Inspiring
    March 11, 2015
    Yep, thanks for sharing.
    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
    New Participant
    June 18, 2015
    While I have corrected the items that showed errors in the console, I seem to have further problems: I have games that I made with Unity 4 where the HMD works. When I try using this integration in Unity 5, the HMD screen does not turn on and all game output is displayed on my primary monitor, but it reacts to movements of the HMD. Do you guys have an idea about what I am missing?
    „Developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, yes!" - Steve Ballmer
    Inspiring
    June 18, 2015
    Are you maybe in Direct Mode? Cause that's only supported in Unity 5.1 first-party support.
    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
    New Participant
    June 18, 2015
    Hi cybereality, thanks for your input.

    Why would anyone remove the support for Direct HMD Access Mode? Or what are you referring to? I'm afraid you have to be a bit more specific as I am still getting used to Unity..
    „Developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, developers, yes!" - Steve Ballmer