问题:(错误在VRIntegrationHelper.cs脚本中)
error CS1061: Type `UnityEngine.Camera\' does not contain a definition for `SetStereoProjectionMatrices\' and no extension method `SetStereoProjectionMatrices\' of type `UnityEngine.Camera\' could be found. Are you missing an assembly reference?
解决方法(使用SetStereoProjectionMatrix替代SetStereoProjectionMatrices):
原来的代码:
mLeftCamera.SetStereoProjectionMatrices(mLeftCamera.projectionMatrix, mRightCamera.projectionMatrix);
mRightCamera.SetStereoProjectionMatrices(mLeftCamera.projectionMatrix, mRightCamera.projectionMatrix);
修改后的代码:
mLeftCamera.SetStereoProjectionMatrix(Camera.StereoscopicEye.Left, mRightCamera.projectionMatrix);
mRightCamera.SetStereoProjectionMatrix(Camera.StereoscopicEye.Right, mRightCamera.projectionMatrix);