Hi, Im using Unity and i'm trying to get if user is wearing the headset. I found one solution but i need to wait 15 seconds to get the false value, is not working like real time sensor....
Any idea to fix it?
InputDevice headDevice = InputDevices.GetDeviceAtXRNode(XRNode.Head);
if (headDevice.isValid == false) return;
bool presenceFeatureSupported = headDevice.TryGetFeatureValue(CommonUsages.userPresence, out bool userPresent);
Debug.Log("DATA: " + userPresent);