wsyblog

问题:(错误在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);

分类:

技术点:

相关文章:

  • 2021-06-21
  • 2021-12-10
  • 2022-12-23
  • 2020-12-23
  • 2022-02-14
  • 2021-12-25
  • 2021-07-04
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2021-11-13
  • 2021-04-01
  • 2021-10-19
  • 2022-12-23
  • 2021-04-14
相关资源
相似解决方案