使用Vuforia报错:
Library\PackageCache\com.ptc.vuforia.engine@961073a467cc\Vuforia\Scripts\Internal\ARFoundationIntegration\ARFoundationFacade.cs(253,31): error CS0246: The type or namespace name 'ARTrackablesChangedEventArgs<>' could not be found (are you missing a using directive or an assembly reference?)
检查以后发现问题出在这个版本的Vuforia11是针对unity6进行优化的,配合的AR Foundation 包是高版本unity的,这就导致了兼容性问题。
如果在unity6中导入Vuforia是不会报这个错误的。但问题是unity6对于MRTK的兼容似乎不好。
而且unity6中国不给用,尝试了一些办法使用unity6,但是也出现了新的错误:
尤其是打包的时候, visual studio报错找不到 SDK“WindowsMobile, Version=10.0.26100.0”。导致编译失败,无法将APP发送给hololens使用,但是从unity打包是成功的。
不要是使用unity asset里面的Vuforia Digital Eyewear Sample(2025年6月18日),该实例目标引擎版本是6000.0.23
如果想解决该问题,建议使用unity2022 LTS版本+Vuforia 10进行hololens2开发