cancel
Showing results for 
Search instead for 
Did you mean: 

UnityEngine.RenderMode Error

rahuloculus
Honored Guest
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
24 REPLIES 24

cybereality
Grand Champion
Which Unity version are you using specifically (i.e. Unity 5.0.0p3, etc.)?

rahuloculus
Honored Guest
Hello Cyberreality

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

Thanks
Rahul

cybereality
Grand Champion
Would you mind updating to a new release of Unity (not beta)? Version 5.0.1 should work.

http://unity3d.com/get-unity

rahuloculus
Honored Guest
I already did...but not working too.

cybereality
Grand Champion
I can check on this tomorrow. Feel free to send me a PM and remind me if you don't get an answer.

rahuloculus
Honored Guest
Can someone help me plz to solve this issue?

SAOTA
Honored Guest
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.

rahuloculus
Honored Guest
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

cybereality
Grand Champion
I was not able to reproduce this at all. I am checking to see if someone here knows more.