Skip to main content
Up and Coming
April 3, 2015

UnityEngine.RenderMode Error

Hello

I have unity 5 and when i import Unity Integration pacakge file and run the camera i get following error message.

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

I found the soltion on the forums that we have to change the .world into .worldSpace.But when i goes to mono developement and open OVRMainMenu.cs there is already .worldSpace so why i am getting this error.

I have latest Oclus Mobile SDK which is uploaded on 31st March 2015.

Thanks in advance
    This topic has been closed for replies.

    24 replies

    Inspiring
    April 7, 2015
    Also, it's possible you have the wrong version of Unity. Can you take a screenshot of the about box to verify the version (it's on the top menu bar "Help" -> "About Unity...".).

    Keep in mind you may have multiple versions of Unity installed at once (for example, I have 4.6.3 and 5.0.1 both installed) and different ones may open by default depending on your settings.
    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
    Up and Coming
    April 8, 2015
    I have removed all the version with deep clean which i tried and not installed fresh one which is 5.0.0p2. please check attached image.

    http://postimg.org/image/gerqt0nyr/
    Up and Coming
    April 8, 2015
    "vrdaveb" wrote:
    Older Unity betas called it RenderMode.World. Can you try that instead?


    I tried different versions old with new script and new with old script but everytime its give some error either it crashes or give some error.So now i have installed only 5.0.0.p2 version after unsinstalling the other unity in deep.
    Up and Coming
    April 8, 2015
    How about you create a brand new clean project.. Install the OVR SDK and see if everything compiles properly.

    If so, you could back up your old project, delete the OVR and Plugin folders (assuming you don't have any other 3rd party plugins in there otherwise you'll have to just delete the OVR stuff), and then copy the OVR and Plugins folders from the new working project.
    Up and Coming
    April 8, 2015
    actually i tried with totally fresh project earlier only...but it not working too...which OVR SDK version i have to install it.i want to do test for Note 4 only.
    Inspiring
    April 9, 2015
    You can try just changing "WorldSpace" to "World" and seeing if that gets rid of the error.
    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
    Up and Coming
    April 9, 2015
    if i change into "world" only,it says "does not contain a definition for `World' ...i am just stuck in this.
    Inspiring
    April 9, 2015
    Is it possible you removed the "using UnityEngine;" statement from the top of the file?

    Or maybe you defined you own type "RenderMode" somewhere that could be masking it?
    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
    Up and Coming
    April 10, 2015
    I did not understand what you mean by that.....please explain me from where to remove and how to mask and make own render node.If its scripting then i have zero knowledge of it.
    Inspiring
    April 10, 2015
    Can you start totally fresh? Meaning uninstall the Oculus software and the Unity editor, and then reinstall both most recent versions. Then start a new project and import the Oculus Unity integration and play in the editor without modifying anything.
    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