Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

OnApplicationPause not called when taking off the headset


Fangh
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...