How AVP detect when people actual wearing it?
It might be achieved with eye tracker sensors (IR cameras, led illuminators etc) I don’t know if there any proximity sensor.
This is probably a question for Apple. As @ibrahimpenekli suggests, it does seem to be looking for your eyes (just covering the face plate doesn’t wake it up), but we don’t have a documented explanation as to what will cause the device to wake up.
On the Unity side, this isn’t something we can detect, either, as we just get signals from the OS that the application is going inactive or becoming active again. On the Unity side, you should be able to use OnApplicationPause to react to this happening in your C# code, for example if you want to open a pause menu or something like that. OnApplicationPause will be called whenever we pause Unity, which sometimes happens if you take off the headset, sometimes happens if you press the crown button, etc. It will depend on whether you are using a fully immersive space, volumes, or both.
Thanks for the reply, I’ll give it a try.