Fangh Posted February 23, 2022 Posted February 23, 2022 Hello. On previous headset models (tested on Focus plus), the Unity Monobehaviour method "OnApplicationPause" was called when taking off & putting back on the headset. It seems to not be the caseanymore with the Focus 3. Same thing for "OnApplicationFocus". Is there another way to know when the user is taking off the headset?
Tony PH Lin Posted February 24, 2022 Posted February 24, 2022 Hi @Fangh, We recommend you to use below Unity script API as more formal way on Focus 3. https://docs.unity3d.com/ScriptReference/XR.CommonUsages-userPresence.html As "OnApplicationPause" or "OnApplicationFocus", these may vary depends on the design behavior and not 100% equal to user taking off / putting back the headset. Thanks.
Fangh Posted February 24, 2022 Author Posted February 24, 2022 6 hours ago, Tony PH Lin said: Hi @Fangh, We recommend you to use below Unity script API as more formal way on Focus 3. https://docs.unity3d.com/ScriptReference/XR.CommonUsages-userPresence.html As "OnApplicationPause" or "OnApplicationFocus", these may vary depends on the design behavior and not 100% equal to user taking off / putting back the headset. Thanks. I just tested the CommonUsages.userPresence: It works like a charm on Focus 3. Thanks for the quick answer. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now