Thursday, July 19, 2018

Unity VR (XR) camera not located at the position you add it in the scene


The camera is directly controlled by the engine and you may not be able to specify its position. What you have to do is to center the camera in the scene (0,0,0) and then put this inside a empty object. You can then position this camera containing object to where you want the player camera to be located


It may be a good practice to call below just to be sure camera is initialized and centered just before your scene starts
UnityEngine.XR.InputTracking.Recenter();

No comments:

Turn on Windows 11 Fast Boot

If windows starting is slow, to enable windows 11 fast startup/boot,  Press Windows + R, type powercfg.cpl, and hit Enter.  This will direct...