Oculus Link doesn't start in Unity 2021.3.9f1

Testing out new versions of Unity to be able to teach VR development to people using the new Silicone Unity Editors for the mac. Ran into a funny problem.

Set up a new project with the XR Interaction Toolkit using Unity 2021.3.9f1. Went through all the setup, checked the necessary box in the Project Settings to allow Oculus Rift (and Link) to work. I built the .apk to my headset and everything is functional, including the Normcore multiplayer I set up, teleportation, etc.
8450867--1121045--upload_2022-9-19_15-49-1.png

When I enable Oculus Link on the headset, the new menu opens as expected. However, when I hit Play in the Unity Editor, it does not automatically start the Unity application over Oculus Link.

I opened a project I had in Unity 2020.3.13f1, and when I hit Play in that Unity started up fine, just as expected. It seems as though there’s something specific to Unity 2021.3.9f1 that’s not allowing the Editor to start in the headset. I even decided to import the Normcore SDK into the 2020.3.13f1 project, nope, Oculus Link works fine even with that. Almost certainly something wrong with the Unity Editor in 2021.3.9f1

1 Like

Hey @CreepyLamppost ,
One of us will take a look here on our end. Just to clarify, you are seeing this with a fresh project in 2021.3.9f1? Can you confirm if it works with OpenXR over Oculus Link?

This is in a fresh project in 2021.3.9f1, in 2021.3.10f1, as well as 2022.1.16f1

Implemented OpenXR and added the Oculus Touch Controller Profile in a newly opened 2022.1.16f1 project, didn’t fix anything. Oculus link didn’t run on the headset.

Opened up the 2021.3.9f1 project, hit play and it had magically fixed itself overnight, played on the headset without me touching anything or implementing OpenXR, it was just using the Oculus SDK.

Tried closing the 2022.1.16f1 project and opening it again, suddenly Oculus Link launches just fine with the OpenXR implementation.

My conclusion is that fresh Unity projects don’t run Oculus Link, but if you close and open them once they start behaving themselves. Worth knowing for me as a teacher in case a student runs into that issue.

8453720--1121672--upload_2022-9-20_15-44-36.png

@CreepyLamppost
We will see if this can be reproduced on our end. I know the newest versions of the OpenXR plugin require a restart of the editor for reasons like this. When pulling in these packages, did it ask you to restart the editor at any point?