Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity Overlay issue

Discussion in 'AR/VR (XR) Discussion' started by RaptorX81, Dec 8, 2016.

  1. RaptorX81

    RaptorX81

    Joined:
    Apr 28, 2014
    Posts:
    12
    Hello! I'm trying to create a simply SteamVR overlay program in Unity. The goal is to be able to draw certain UI elements when you look at the back of your Vive controller.

    The problem I'm running into however is the overlay app closes the moment another Unity VR game launches. I've been examining this project as an example - https://github.com/Hotrian/HeadlessOverlayToolkit however I can't even get this example to work. If I build that example project, the overlay closes once a game launches.

    Has anyone else ran into this issue or am I missing something? Thanks in advance! I've tried this in 5.3, 5.4 and tonight I updated to 5.5 and it made no difference. I've tried running in -batchmode but the app crashes. I have also ensured all my hardware is running the latest firmware.
     
  2. timohyvo

    timohyvo

    Joined:
    Jan 5, 2017
    Posts:
    1
    Did you get this sorted out?
     
  3. icewind1991

    icewind1991

    Joined:
    Dec 23, 2017
    Posts:
    1
    For anyone finding this trough google:

    I managed to fix the issue with the following code:

    Code (CSharp):
    1. var error = EVRInitError.None;
    2.  
    3. OpenVR.Init(ref error, EVRApplicationType.VRApplication_Overlay);
     
    mfuller1875 likes this.