02-08-2024 12:16 AM
Hello, I have a problem in developing Oculus application with Unity.
I want to reset player position when player hold oculus home button.
I found that I can use OVRManager like below.
private void Start()
{
OVRManager.display.RecenteredPose += ResetView;
}
private void ResetView()
{
// Reset tracker origin
}
But the problem is this code doesn't work while I use oculus link to connect with unity editor.
There is a same functionality button at unity window but OVRManager.display.RecenteredPose event is not called when we use this button.
I read some thread saying that application cannot reset device offset but if I adjust device origin to reset view, player cannot reset view by holding oculus home button since device origin will not be at correct position.
If I can receive event when player press Reset view button, everything should be fine.
Thank you.