Vuforia出現 SetStereoProjectionMatrices方法已過時

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章