Search Unity

How do you make an OVRCameraRig LookAt a gameobject?

Discussion in 'AR/VR (XR) Discussion' started by codewalla, Aug 5, 2019.

  1. codewalla

    codewalla

    Joined:
    Oct 30, 2015
    Posts:
    5
    Hi,
    I need to rotate my vr camera on change of skybox texture, to a direction facing the door of the interior. I am aware that due to hmd, camera rotation gets overridden, but I need to set the initial rotation on changing the skybox.
    I am able to get the direction & move a normal camera by using the LookAt() func, but this does not work in VR.
    I tried parenting the OVR Rig & rotating the parent object but that also is not working.

    Any suggestions?