Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Question Unity editor not launching SteamVR

Discussion in 'VR' started by robarichard, Sep 5, 2022.

  1. robarichard

    robarichard

    Joined:
    Sep 2, 2022
    Posts:
    3
    Hi, I'm trying to get started with this project: https://learn.unity.com/tutorial/vr-project-setup

    Seems like no matter what I tweak, I can't get it to Play in the headset. I've tried removing/readding packages, deleting the project and starting over, changing from system default to SteamVR, checking my registry to make sure SteamVR path for the OpenXR json file is correct.

    Screenshots of my config below. I've tried starting with SteamVR running (and not running) and it just stays in the SteamVR home.

    I noticed other people have submitted Player.log so I'm uploading that also.

    upload_2022-9-5_12-39-4.png

    upload_2022-9-5_12-45-15.png
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,022
    - Do other games work?
    - Is SteamVR set as OpenXR runtime?
    - how is your player setup? It needs VR support
     
  3. robarichard

    robarichard

    Joined:
    Sep 2, 2022
    Posts:
    3
    Other commercial games work through Steam when I launch them, yes.
    Yes, SteamVR is set as OpenXR runtime. I confirmed in the registry.
    The last question I'm actually not sure about. I read some things online that seemed like they were from older docs but couldn't see anywhere in my player config in project settings to enable VR?

    Do I need to change something in this section?
    upload_2022-9-6_8-57-25.png
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,022
    Sorry, on the player game object. How is the vr player in the scene set-up.
     
  5. robarichard

    robarichard

    Joined:
    Sep 2, 2022
    Posts:
    3
    Sorry for the spam of screenshots, but not sure what I should show.


    upload_2022-9-6_10-18-21.png upload_2022-9-6_10-18-37.png

    upload_2022-9-6_10-18-59.png
     
  6. ShawnFeatherly

    ShawnFeatherly

    Joined:
    Feb 22, 2013
    Posts:
    57
    I have the same issue. Other PCVR games work through SteamVR and SteamVR is set as the OpenXR runtime. I'm able to make android builds that are picked up as VR when deployed to the headset. So I know the Unity scene is setup fine. The issue is with Unity's connection to PCVR/SteamVR.

    I am using an XR Elite. I was hoping more SDKs would help, but they didn't help.
     
  7. Trisk910

    Trisk910

    Joined:
    Nov 12, 2018
    Posts:
    2
    Same Issue here. I already posted on steamvr discussion page but got no answer. Encountered this issue some months ago where I created a Vr project on my laptop, switched to a desktop and was working correctly. Now I try to open the project on the desktop and whenever I launch game with unity, it make a try to launch the project but then nothing happens, but on my laptop is working without issue. I also tried to run it on a fresh windows 11 install and I am having same issue (my laptop is also windows 11).

    I am using Htc Vive with steamvr and openXR in Unity.

    EDIT: I found the problem. It is related to the package XR Interaction toolkit. On my laptop was working but after updating the package is not working anymore.

    Here is the versions that seems to be working:

    -OpenXR Plugin 1.3.1
    -XR Interaction Toolkit 2.0.0-pre6
    -XR Plugin Management 4.2.1
     
    Last edited: Jan 23, 2024
  8. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    23
    Hey there, can you give us info on the latest XRI Toolkit package version where this was still working and confirm it? With that info we can better root cause the regression
     
  9. Trisk910

    Trisk910

    Joined:
    Nov 12, 2018
    Posts:
    2

    How can I progressively upgrade the package? As for now I can only go from 2.0.0-pre6 to last release.
     
  10. Yee_Fu

    Yee_Fu

    Joined:
    Oct 31, 2022
    Posts:
    2
    actually, i still have the same problem. i thins the issue is with Unity's connection to SteamVR.
     
  11. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,022
    Unity 2021.3.22 and XRIT 2.5.2 with OpenXR 1.8.2 (latest Pico compatible version)
    Will try to update later on