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 3, 2015
    Which Unity version are you using specifically (i.e. Unity 5.0.0p3, etc.)?
    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 4, 2015
    Hello Cyberreality

    i am using "Unity Pro v5.0.0b5" (64bit)

    Thanks
    Rahul
    Inspiring
    April 4, 2015
    Would you mind updating to a new release of Unity (not beta)? Version 5.0.1 should work.

    http://unity3d.com/get-unity
    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 5, 2015
    I already did...but not working too.
    Inspiring
    April 5, 2015
    I can check on this tomorrow. Feel free to send me a PM and remind me if you don't get an answer.
    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 7, 2015
    Can someone help me plz to solve this issue?
    Up and Coming
    April 7, 2015
    if you double click on the error in the inspector/log it takes you to the error in the script.

    there are two places/lines/errors where 'world' needs to be changed to 'worldspace'.

    You should not be getting that error if you have changed these lines.




    Please note, the image shows only one of these lines.

    The other line of code is towards the end of the script.
    Up and Coming
    April 7, 2015
    As i says in ealier post that when i open this main script and see those lines the word "WorldSpace" is already there.So i am confused why it is giving me error if that word "WorldSpace is already there.Please check attahed links for images.

    http://s30.postimg.org/7vtazxz1p/image.jpg

    http://s30.postimg.org/nri538pm5/image.jpg

    http://s30.postimg.org/5m0lbg0q5/image.jpg
    Inspiring
    April 7, 2015
    I was not able to reproduce this at all. I am checking to see if someone here knows more.
    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
    April 7, 2015
    Older Unity betas called it RenderMode.World. Can you try that instead?