09-04-2020 12:22 PM
07-19-2021 10:42 PM
I know this is an old post, but I had this issue over the last few days. I still have Play Mode crashing using Oculus Link and Air Link. But here's what IS working: I purchased the Virtual Desktop app for Quest 2, and by default the Unity editor's play button will not trigger full screen VR, but the following forum post has instructions that worked for me with an admittedly hacky batch file to launch everything in the right order using the command line and specific command line argument(s). When I exit all programs, then use this Batch file, it will launch Virtual Desktop Streamer on my PC and wait for me to put the headset on and start the Virtual Desktop app on my Quest 2. Once the Virtual Desktop app on my Quest 2 connects to my PC, it will see the Unity editor which it has just launched. Then I can press Edit -> Play (for some reason the actual Play button still won't click) and it will enter Play Mode and correctly go fullscreen VR with spatialized audio, controllers, etc. I'm also using VRIF as the author of the post is, but I don't think that's related to why this is working. Best part of this is that it's completely wireless, no Link cable needed, and more performant than out-of-the-box Air Link in my experience. Here's the post URL: https://forum.unity.com/posts/6792485/
Of course, I hope that upcoming software updates will refine and stabilize the roundtrip workflow for Unity development, without the need for command line batch files and the third party Virtual Desktop app.
07-27-2022 08:54 AM
Everything worked when I tested the solution in the post using Unity 2020.3.16f1 and a default Sample VR Project, but I can't get this to work for my own project.
When I hit the Unity preview button inside the Oculus VD, the scene is not playing on my headset, but stays on the Unity preview window and headset tracking isn't working.
I'm using Unity 2020.3.27f1 and Oculus integration, with OVRCameraRig set up in my scene.
When I build the project to my Oculus using cable everything works, so I'm not sure that the problem is with my project settings.
Can you please help?
**
Procedure
"C:\Program Files\Virtual Desktop Streamer\VirtualDesktop.Streamer.exe" "C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Unity.exe" -projectpath "C:\Repos\proj-stardew-vr-health -cloudEnvironment"
**