cancel
Showing results for 
Search instead for 
Did you mean: 

Callback when user resets the head pose.

Kurodo
Level 2
We are using the standard Oculus integration in Unity 2019.1.2f1.

I am looking for a callback/event that is triggered when the HMD is reset after the user presses and holds the Oculus button on the right hand touch controller, but have not been able to find anything either in the online documentation or by looking through the available source code.

Have I missed something?

Assuming I haven't, I was going to add an event and trigger it from within this condition
if (AllowRecenter && OVRPlugin.shouldRecenter)
{
    OVRManager.display.RecenterPose();
}
which is from OVRManager.cs, line 1383. Any reason why that wouldn't work for me?
4 REPLIES 4

Kurodo
Level 2
Of course, I found the event I wanted just after posting this 😄

If anyone comes here and is interested, you are looking for OVRManager.display.RecenteredPose

Gruguir
Level 4
@Kurodo
On Quest device ? Can you confirm please because I can't get it to work.

Kurodo
Level 2
@Gruguir can confirm that I am seeing this working as expected on Quest. We have upgraded to Unity 2019.1.14f1but I don't recall seeing any issues in either version.

Kurodo
Level 2
@Gruguir fwiw looked into this a little more and spotted that the event is only called in version 1.40 and later of the Unity integration, so i'm guessing that you are maybe on an earlier version.