Skip to main content
New Participant
June 21, 2018

Error when loading in Oculus Utilities for Unity

Hi,

When I load in the Oculus Utilities for Unity, I immediately have an error in one of the scripts which reads "Assets/Oculus/VR/Scripts/OVRPlugin.cs(2876,18): error CS0103: The name `OVRP_1_15_0' does not exist in the current context"
How can I deal with this error? Is there a way to locate OVRP or is that no longer a part of the oculus utilities?
Thank You!
This topic has been closed for replies.

33 replies

Participant
June 28, 2018
@imperativity I also got these errors on mac and the stated fix worked. This was my first experience trying to develop for Oculus, not much of a confidence builder.



Participant
June 28, 2018
Ah, okay that's helpful, thank you @imperativity – I'll jump over to PC
New Participant
June 28, 2018
i am currently running into this issue with Unity Cloud Build with Oculus Utilities 1.27 targeting Android.

here is the output from Unity Cloud Build:


tried implementing the fix suggested by @luks0r, but the end result was the same.
Participant
June 29, 2018
@imperativity It took all day, but I got everything set up and working on PC – I am able to transfer and run a build on the Go. I have another question but I'll ask it on a new thread.
Participant
June 29, 2018
Also, I did get everything to work on MacOS as well eventually. Something had been missed in the billion and one setup steps.

The docs should more clearly outline or mention the significant setup you need to do in Unity's build settings and preferences. I realize there's also Unreal and you guys aren't here to repeat what Unity manages, but it would be nice to outline it in the same way you outline using adb and other external tools so it isn't overlooked. 

There is a nice blog post that does walk through everything clearly and simply here, even though it's still an unpleasantly long list of tasks: https://medium.com/inborn-experience/how-to-build-an-app-for-the-oculus-go-from-start-to-finish-with-unity-cb72d931ddae
New Participant
July 16, 2018
I haven't managed for this to work, keep getting errors when compiling. Would anyone that has managed to make it work (for Mac), please attach a copy of the script to see if it works for me, please?
slukasxr
Participant
July 17, 2018
I'm totally developing an OS X for GearVR / Go, despite it not being officially supported apparently. Anyone feel free to PM me and I should be able to help walk you through this issue (unless you're using Cloud Build)
Up and Coming
July 17, 2018
Also on OSX here, @luks0r fix works.  No support for OSX?  That's lame.   
Up and Coming
July 17, 2018
@luks0r
I am Also developing with OS X for GearVR / Go, and having trouble with that same DaRn script error.  With your fix I manage to fix the first problem easily. But then this error popped up next:
Assets/Oculus/VR/Scripts/OVRPlugin.cs(2907,21): error CS0103: The name `OVRP_1_21_0' does not exist in the current context

Can you help please?
slukasxr
Participant
July 17, 2018
Yeah! From the line number it looks like you only wrapped one of the three places you have to do this. You need to fix this code in 3 total places, in the morning exact same manner, at these line pairs:

2876 / 2890,
2901 / 2917,
2928 / 2936

See my previous posts for an example of it if you need a refresher.

for easy copy / paste, the wrapping is this:
#if !OVRPLUGIN_UNSUPPORTED_PLATFORM

and

#endif