void Update() { if (xr.DisabledInEditor()) { return; } if (!initialized) { Initialize(); } transform.position = xr.GetCameraPosition(); transform.rotation = xr.GetCameraRotation(); }
void Update() { transform.position = xr.GetCameraPosition(); transform.rotation = xr.GetCameraRotation(); sceneCamera.projectionMatrix = xr.GetCameraIntrinsics(); }