Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Black in VR after upgrading from 2019 to 2020

Discussion in 'VR' started by SCLJonasson, Dec 6, 2023.

  1. SCLJonasson

    SCLJonasson

    Joined:
    Sep 16, 2018
    Posts:
    2
    I need to update an existing project from Unity 2019 to Unity 2020.
    But when I press play, the image in the headset is black. (both editor and build)
    But in the editor, I can see the camera view.
     
  2. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    22
    Can you give more details on the packages you are using in the project? Some settings/configurations may change between Unity versions.
     
  3. SCLJonasson

    SCLJonasson

    Joined:
    Sep 16, 2018
    Posts:
    2
    These are the relevant packages. The issue could be connected to URP

    in unity 2019
    Code (csharp):
    1.     "com.unity.render-pipelines.universal": "7.3.1",
    2.     "com.unity.xr.management": "4.0.1",
    3.     "com.unity.xr.oculus": "1.6.1",
    4.     "com.unity.modules.vr": "1.0.0",
    5.     "com.unity.modules.xr": "1.0.0"
    in Unity 2020
    Code (csharp):
    1.     "com.unity.render-pipelines.universal": "10.10.1",
    2.     "com.unity.xr.management": "4.3.3",
    3.     "com.unity.xr.oculus": "1.13.1",
    4.     "com.unity.xr.openxr": "1.7.0",
    5.     "com.unity.modules.vr": "1.0.0",
    6.     "com.unity.modules.xr": "1.0.0"
     
  4. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    22
    I noticed the new project is using both com.unity.xr.oculus and com.unity.xr.openxr. Was your 2019 project configured specifically to use the Oculus package while the current active plug-in is openxr? Are you able to get a scene to render on device with this setup and a new project?