一、使用当前版本的Unity与Vuforia在打包时会出现若干报错(Unity2018.2.16f1与Vuforia support Unity 5.3.6)
研究发现这里面最根本的错误是(只要解决了这个问题就可以正常打包了):
Assets/Vuforia/Scripts/Utilities/VRIntegrationHelper.cs(106,30): 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?
解决办法
1、双击打开VRIntegrationHelper.cs脚本,会有两行代码显示为弃用的:
2、这里换一下方法就没有问题了
mLeftCamera.SetStereoProjectionMatrix(Camera.Stereo