Search Unity

Question Rift CV1 recentering using the new XR Input System?

Discussion in 'XR Interaction Toolkit and Input' started by Devil_Inside, Jun 30, 2022.

  1. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    From what I understood, Quest 2 has a built-in method to recenter view and all the other methods using Unity and Input System doesn't work for Quest.
    However I use Rift CV1 for development and the suggested method doesn't work for Rift either.
    Here's my code:
    Code (CSharp):
    1. var inputSubsystems = new List<XRInputSubsystem>();
    2. SubsystemManager.GetInstances(inputSubsystems);
    3. for (int i = 0; i < inputSubsystems.Count; i++)
    4. {
    5.      inputSubsystems[i].TryRecenter());
    6. }
    Is there a different way to recenter on Rift?