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

vrdaveb
Oculus Staff
Older Unity betas called it RenderMode.World. Can you try that instead?

cybereality
Grand Champion
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.

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

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

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

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

cybereality
Grand Champion
You can try just changing "WorldSpace" to "World" and seeing if that gets rid of the error.

rahuloculus
Honored Guest
if i change into "world" only,it says "does not contain a definition for `World' ...i am just stuck in this.

cybereality
Grand Champion
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?

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