Forum Discussion
Kurodo
6 years agoExplorer
Callback when user resets the head pose.
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
- KurodoExplorerOf course, I found the event I wanted just after posting this :DIf anyone comes here and is interested, you are looking for OVRManager.display.RecenteredPose
- GruguirMember@Kurodo
On Quest device ? Can you confirm please because I can't get it to work. - KurodoExplorer@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.
- KurodoExplorer@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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 4 years ago
- 3 years ago
- 2 years ago
- 9 months ago