Forum Discussion
tieu51
2 years agoExplorer
How to pause game when taking off the Hmd?
Hi everyone,
I'm a new french developer on quest 2, with unity and open xr, and I try to implemant the paused game when taking off the hmd.
This is necessary to be compliant with app lab & meta store ...
I succeed to pause game with a button but I'm not able to use the 'presence user' to apply it on remove the hmd, if anyone have the solution ...
Thanks in advance 🙂
2 Replies
Replies have been turned off for this discussion
Sorry can't remember exactly how I solved this as I don't have the project to hand but from my OneNote here are the links that helped me gert a solution:
About OnApplicationQuit not working and why OnApplicationPause is not enough
https://forum.unity.com/threads/onapplicationquit-and-ondestroy-is-not-executed-when-exit-app-on-oculus-quest.795942/https://developer.oculus.com/documentation/unity/unity-lifecycle/
https://discussions.unity.com/t/detecting-oculus-hmd-is-removed/170940
- tieu51Explorer
Hi baroquedub,
Don't be sorry : it's really kind to answer me :).
I watch all the link that you gave to me but I must not be gifted. I only found a piece of code in this (https://forums.oculusvr.com/t5/Unity-VR-Development/Correct-way-to-pause-game-when-headset-removed-D...) but some parts are missing, or I don't understand all of the solution ...
Nevertheless, I thanks you very much.
There is this link
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
- 4 months ago
- 1 year ago