升级到 AR Foundation 版本 6
适用于 Unity 的 AR Foundation 的 ARCore Extensions 支持 AR Foundation 的所有版本 4、版本 5 和版本 6。如需将现有的 AR 项目从 AR Foundation 5.x 升级到 AR Foundation 6.x,请按以下步骤操作:
由于对 TrackedPoseDriver
的依赖,AR Foundation 6.x 仍然需要 Input System 软件包。ARCore Extensions 示例场景需要旧版输入模块。
如需同时支持输入系统软件包和旧版输入管理器,请在 Project Settings > Player > Other Settings 中将 Active Input Handling 设置为 Both。
更新或移除 Unity 的 AR Foundation 中已废弃和已更改的 API
6.1 版有哪些新变化
在 Player Settings > Player > Other Settings > Application Entry Point 中,检查 Activity 是否已勾选,以及 GameActivity 是否已取消勾选
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-28。
[null,null,["最后更新时间 (UTC):2025-02-28。"],[[["ARCore Extensions for Unity's AR Foundation supports AR Foundation versions 4, 5, and 6."],["Upgrading to AR Foundation 6.x requires addressing Input System package dependencies and potentially adjusting Active Input Handling to \"Both\" for compatibility."],["Developers need to update or remove deprecated APIs and ensure specific settings within the Player Settings are configured correctly for the upgrade."]]],[]]