0 votes
by (460 points)
recategorized by

Hi,

I need to access the presence sensor. I want to know when a person is using the headset.
I have search on the documentation and in the github ( https://github.com/picoxr/support ) with no luck.

Please, could you tell me any information about how to detect when someone puts the headset on? Thanks

1 Answer

0 votes
by (450 points)

I think this method may be able to help you:

bool value;
InputDevices.GetDeviceAtXRNode(XRNode.Head).TryGetFeatureValue(CommonUsages.userPresence, out value);

This is the standard interface in UnityXR, and the value is related to the proximity sensor on HMD.

...