Is there a way we can detect if the headset has been removed? Will any of the unity lifecycle events get called, or is there an event we can hook into?
I assume you’re talking about WindowsMR headsets, so I doubt it’s a big deal this was only added in 2017.2: you can query this with XRDevice.userPresence (Unity - Scripting API: XR.XRDevice.userPresence). I’ll ask the dev that wrote this about exposing changes to this as an event you can register for, so the onus wouldn’t be on you to poll it from frame to frame - I didn’t realize this before, but it makes more sense to me that you would generally only care about the UserPresenceState when it changes, so it seems like both polling and event-based should be available.
I’m referring to the Hololens headset only right now. If possible we would like to respond to an event when a user removes the headset so we can restart an experience.
If this supports the Hololens then ill look into moving up to 2017.2. I am on 2017.1 right now and I dont really want to use a beta.
The API that we call for that on our end isn’t available on the HoloLens. Sorry, but no, there’s no wait to detect that.
Thats what I thought. Thanks anyway.