Skip to main content
Participant
June 13, 2019

Unity UnityEngine.XR.Recenter not working on Quest

Hi all, I'm having a weird problem where I'm trying to call the 
Recenter

function. So I am currently trying to develop on the rift, and then building on the Quest. However, I am facing a problem, when I call the recenter function on the rift, everything works perfectly and as intended. However, when I test it on the Quest, the function does not seem to work at all. Does anyone have the same thing? 


If it matters, I'm using Unity 2018.4.0f1 LTS


Thanks all!

This topic has been closed for replies.

17 replies

New Participant
June 14, 2019
I have the same issue running on Unity2018.3.12f1 I tried UnityEngine.XR.Recenter and also OVRManager.display.RecenterPose() neither of which work. I don't see any documentation on this but there should be because of VRC.Quest.Functional.9. Now if there is no way to do it on the quest because you have reserved that functionality for long pressing your home button than that needs to be said. But if this is a bug I have a minimal project that reproduces it.
Participant
June 17, 2019
Hey guys, you should look at this post: https://developer.oculus.com/first-access/santa-cruz/post/2265251466819472/

An Oculus rep "mfmf" has confirmed the behavior was intentionally disabled on Quest:

Followup: there will not be a way for apps to manually trigger a recenter. Users are expected to know how to recenter properly. We've made recenter much easier to trigger on Quest than Rift.

Participant
June 18, 2019

choof said:

Hey guys, you should look at this post: https://developer.oculus.com/first-access/santa-cruz/post/2265251466819472/

An Oculus rep "mfmf" has confirmed the behavior was intentionally disabled on Quest:

Followup: there will not be a way for apps to manually trigger a recenter. Users are expected to know how to recenter properly. We've made recenter much easier to trigger on Quest than Rift.



Hmm, thank you for this! It was definitely driving me crazy as to why it wasn't working on the Quest...

This is unfortunate, but at least there is an answer!
New Participant
April 30, 2023

Still struggeliing but and the other post no longer available 😕
What was the fix please ?
thanks

New Participant
August 1, 2019
I don't want to manually trigger a recenter. I just want to subscribe to the event for when the playspace is recentered so my app can know when the user resets their view. Pls Oculus?
Up and Coming
December 4, 2019
I don't understand. We should at least be able to know if the user has recentered the view by himself ?
@mfmf excuse me but as you have been cited and the post is no longer available could you (or someone from the staff) maybe comment or point toward some informations please ?
Honored Contributor
February 25, 2020
For info, this post has a super useful code snippet that will set player position and y-orientation on scene load:
Grrr. can't post links so try adding your own h.t.t.p.s. protocol to the following:
forum.unity.com/threads/help-with-oculus-quest-reorientation-on-levelload.759626/#post-5066975
Participant
August 1, 2020
I found that you are at least *supposed* to be able to tell when the boundary changes or playspace is recentered in Unity using the XRInputSubsystem.boundaryChanged and XRInputSubsystem.trackingOriginUpdated delegates.
New Participant
September 24, 2022

I wish those events would work! But for me, none of the two fire when re-centering the view on the Quest 2. Neither in stationary nor roomscale boundary.

January 4, 2021
Being able to manually trigger a recenter would actually be SUPER helpful with HandTracking only, unless I'm missing how that works natively?

It seems like a poor design if in my game they have to pull up the Oculus menu, then go to setting, then recenter..
Participant
February 2, 2021
Type your commentJoeyArena said:


Being able to manually trigger a recenter would actually be SUPER helpful with HandTracking only, unless I'm missing how that works natively?

It seems like a poor design if in my game they have to pull up the Oculus menu, then go to setting, then recenter..


Exact
when recenter with hand tranckin in the game with gesture menu (RawButton.Start) for example????
Participant
February 3, 2021
My solution to HandTracking recenter with Gesture Menu (RawButton.Start)

public static void RecenterHeadset()
    {
#if OCULUS_PLATFORM
        if (OVRManager.display != null)
        {
            float currentRotY = CameraManager.Main.transform.eulerAngles.y; //This refence a CenterEyeAnchor
            float difference = 0 - currentRotY;
            InteractionSystem.AnchorPlayer.Rotate(0, difference, 0); // InteractionSystem.Anchor This refence a Player

            Vector3 newPos = new Vector3(0 - CameraManager.Main.transform.position.x, 0, 0 - CameraManager.Main.transform.position.z);
            InteractionSystem.AnchorPlayer.transform.position += newPos;
        }
#endif
    }




I hope it helps you ;)