I’m trying to detect when the Gear VR headset is being worn so I can pause my app as soon as it is taken off. Instead of 10 seconds after. Which is the default. I can’t find any documentation about this. Can data be read from the proximity sensor in unity or is there some other way I can detect when the headset is being worn?
You could try seeing if the callbacks for onapplicationpause are triggered. If they are you should be able to pause your game there before it’s suspended. If it isn’t, this might be a better question to ask on the oculus forums if they trigger any callbacks when they detect the headset is taken off.
Yeah I have also asked the question there. Haven’t gotten any response to that one yet.
You can use the isUserPresent instance from the Oculus Utilities. We have created a package which includes different analysing tools for the GearVR and the Cardboard. Unity Asset Store - The Best Assets for Game Making
I don’t see the package. That link just takes me to the asset store homepage.
