最近碰到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 我們只需要更換一下方法就可以