Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  5. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted Upgraded project to 2020.2 gets compilation errors

Discussion in 'VR' started by stillwind, Feb 21, 2021.

  1. stillwind

    stillwind

    Joined:
    Jun 13, 2016
    Posts:
    13
    Hi,

    I have a VR project previously working in version 2020.1.0b16. But when I attempt to upgrade it I get compilation errors.

    The project is for Quest and uses the Oculus integrations package, the errors I'm getting are similar to this "Assets\Oculus\VR\Scripts\OVRPlatformMenu.cs(18,24): error CS0234: The type or namespace name 'VR' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)"

    I haven't dealt with assemblies before but I found that there is an assembly file for the Oculus scripts. I tried to add missing references under "Assembly Definition References" but there's no reference for the UnityEngine.VR (or any Unity VR module at all) in the list. I can confirm that VR does appear to be included in package manager (under Unity built in packages).

    So how do I resolve this? Thanks for any help!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,401
    I don't believe UnityEngine.VR exists there. It's called UnityEngine.XR now. You should probably revert your project to the previous version of Unity, or whatever is the latest version the Oculus integrations package supports.
     
  3. stillwind

    stillwind

    Joined:
    Jun 13, 2016
    Posts:
    13
    How sure are you about that? When I look at the package manager with built-in packages selected I do see VR... isn't that the one it wants?
     
unityunity