Search Unity

Which tracking XRDevice.DisableAutoXRCameraTracking has?

Discussion in 'AR/VR (XR) Discussion' started by Hobodi, Jan 1, 2019.

  1. Hobodi

    Hobodi

    Joined:
    Dec 30, 2017
    Posts:
    101
    Hey guys, somebody know wich XRNode has in XRDevice.DisableAutoXRCameraTracking.

    I try this:
    Code (CSharp):
    1. XRDevice.DisableAutoXRCameraTracking(Camera.main, true);
    2. this.transform.rotation = InputTracking.GetLocalRotation(XRNode.Head);
    But have problems with orientation on mobile. If i don't hold my phone in left landscape it will be upside down. With camera AutoXRTracking tracking is okay, but i need it not for a camera. How to do it?
     
  2. Hobodi

    Hobodi

    Joined:
    Dec 30, 2017
    Posts:
    101
    I understood that if i play app not in leftscape orientation, it will be upside down. Dunno how to get rid with it :c
    Btw how to check it in the unity remote, building takes a lot of time and gvr instant preview use camera rotation, not my InputTracking.GetLocalRotation(XRNode.Head);