Dale Lawrence
Dale Lawrence

Reputation: 73

Am I doing something wrong with importing Oculus Integration in Unity?

When I go to the Asset Store in Unity and import the Oculus Integration I get 63 error messages.

I have tried re-installing Unity, it didn't work. I can't find anyone else having similar issues.

Error Messages:

Assets\Oculus\VR\Scripts\Util\OVRCursor.cs(22,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)

Assets\Oculus\VR\Scripts\Util\OVRInputModule.cs(25,35): error CS0246: The type or namespace name 'PointerInputModule' could not be found (are you missing a using directive or an assembly reference?)

Assets\Oculus\VR\Scripts\Util\OVRInputModule.cs(432,40): error CS0246: The type or namespace name 'MouseState' could not be found (are you missing a using directive or an assembly reference?)

There is many more like this, suggesting files are missing.

Unity Version 2019.3.0a3

enter image description here

Upvotes: 2

Views: 4430

Answers (5)

TheLazyIndianTechie
TheLazyIndianTechie

Reputation: 31

Have you tried removing any existing Oculus package and deleting the library folder before re-downloading and importing? This seems to fix the issues on many Oculus updates. As they're aggressively updating stuff across SDK versions, it causes a lot of conflicts while just updating

Upvotes: 0

Garrett
Garrett

Reputation: 1

I replaced VR with XR and it worked for everything except one boundary error.

Upvotes: 0

Splice Mechanic
Splice Mechanic

Reputation: 1

All VR components were renamed to XR.

Just double click on the errors and replace the lines of the Using statement with XR e.g.

OVRTracker.cs

using VR = UnityEngine.VR;

// is changed to

using XR = UnityEngine.XR;

And the error will disappear.

Upvotes: 0

Azrion
Azrion

Reputation: 117

Make sure you run Unity Hub with administration rights and import Oculus Integration again

Upvotes: 0

Ronnie
Ronnie

Reputation: 146

Ok, this solves this problem, but either there is something wrong with Unity (tested 2019.2.0b4, 2019.1.4f1, and the 2019.3 versions) or Oculus Integration.

Add and a reference to Unity.ugui in Unity like in the picture. unity oculus vr ui problem

I encountered a couple of compiler error as well, but those could just be commented as it was in sample code.

Upvotes: 3

Related Questions