Forum Discussion
darkveins_
7 months agoProtege
Unity OpenXR Meta regression: passthrough doesn't work when focus is lost and regained
Problem: 1. Passthrough initially works fine in the app. 2. Take the headset off, the display goes dark. 3. Put the headset back on, the display turns back on. 4. Unexpected: passthrough no longe...
jameswood32
7 months agoProtege
Yeah, this seems to be a known issue with recent Meta/Unity OpenXR integrations. When the app loses and regains focus (like when removing the headset), the passthrough layer can fail to reinitialize properly. A temporary workaround is to manually re-enable the passthrough feature in code when focus is regained — you can hook into Unity’s OnApplicationFocus or OnApplicationPause. Hopefully, Meta or Unity will patch this in an upcoming release!"
darkveins_
7 months agoProtege
Unfortunately, hooking into OnApplicationFocus doesn't work. The passthrough layer has already been improperly disposed of by the time this Unity method is invoked.
I worked around this regression by creating a custom OpenXR composition layers feature. But it's a rather low-level solution that I don't imagine most devs are going to do.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 days ago
- 1 year ago
- 5 months ago
- 4 years ago
- 2 years ago