Unity Overlay issue

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 - GitHub - Hotrian/HeadlessOverlayToolkit: Create Cross Application OpenVR Overlays! Made with Unity. 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.

Did you get this sorted out?

For anyone finding this trough google:

I managed to fix the issue with the following code:

var error = EVRInitError.None;

OpenVR.Init(ref error, EVRApplicationType.VRApplication_Overlay);
1 Like