Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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:
    23
    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:
    23
    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?