最近碰到Vuforia 发布android时候出现SetStereoProjectionMatrices 方法过时的问题
【注】:如果项目中出现如下错误:
Assets/Vuforia/Scripts/Utilities/VRIntegrationHelper.cs(108,29): 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 a using directive or an assembly reference?)
是导入包的时候VRIntegrationHelper类中的问题
出现这个问题的原因是使用的unity版本比较高 方法已经被unity废弃掉了!翻看了下API 我们只需要更换一下方法就可以