iOS項(xiàng)目編譯出錯(cuò),沒(méi)有生成項(xiàng)目文件
用了最新版的Unity 3D 2018
Assets/Vuforia/Scripts/Utilities/VRIntegrationHelper.cs(99,29): error CS1061: Type `UnityEngine.Camera' does not contain a definition for `SetStereoProjectionMatrics' and no extension method `SetStereoProjectionMatrics' of type `UnityEngine.Camera' could be found. Are you missing an assembly reference?
提示沒(méi)有SetSteroProjectionMatrics函數(shù)? 改成SetSteroProjectionMatrix后 參數(shù)不會(huì)填寫(xiě),說(shuō)是VRIntegrationHelper.cs有問(wèn)題,請(qǐng)問(wèn)老師該如何解決?
2018-10-11
感謝,媽個(gè)雞折騰了半天。。。
2018-05-17
自問(wèn)自答:原因就是版本用太新了,使用老師的Unity 5.6.0f3的版本就沒(méi)有問(wèn)題,Unity 2017或2018對(duì)一些函數(shù)進(jìn)行了修改,而Vuforia for Unity的版本并沒(méi)有更新,還是6.2.0的版本,因此版本代碼不兼容。? ?
解決方法:刪除Unity 3D 2017/2018 安裝Vuforia 6.2.0? 或者 刪除Vuforia 6.2.0 等待Vuforia 7? for Unity