steps are simple and reproducible:
- create project in at least 2019.4.5f1
- Turn on XR Plugin provider “Windows Mixed Reality”. Default settings for the WMR
- turn Main Camera into XRRig
- Add game object, and to it a script
in the script, do this:
public class TestScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Matrix4x4 m = Camera.main.worldToCameraMatrix;
Camera.main.SetStereoViewMatrix((Camera.StereoscopicEye)0, m);
Camera.main.SetStereoViewMatrix((Camera.StereoscopicEye)1, m);
}
// Update is called once per frame
void Update()
{
}
}
play project.
Notice ton of error messages. Seemingly bad ones.