问题:(错误在VRIntegrationHelper.cs脚本中)
error CS1061: Type UnityEngine.Camera’ does not contain a definition forSetStereoProjectionMatrices’ and no extension method SetStereoProjectionMatrices’ of typeUnityEngine.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);
高通ar 导出android apk报错 Assets/Vuforia/Scripts/Utilities/VRIntegrationHelper.cs(99,29): error CS1061
最新推荐文章于 2022-04-24 11:00:57 发布