About x86
ARCore安卓模拟器(Emulator)需要支持X86架构,但是从Unity2019.3.01f起,已删除对x86架构的支持,
虽然官网Unity2019.4还是有显示,存在误导,所以我们先需要去官网下载2019.2.19

建议从Hub下载,并勾选Android Build Support,避免复杂的Android环境配置

ARFoundation
推荐对应使用的ARFoundation和ARCore XR Plugin版本

Player Settings
第二个坑是Unity ARCore XR Plugin 需要OpenGLES3

下载Android Emulator
官方教程: https://developers.google.cn/ar/develop/java/emulator
Android Emulator配置


启动Android Emulator配置OpenGLES3
配置好后需要重启模拟器

推荐安装的ARCore版本
官网下载地址:https://github.com/google-ar/arcore-android-sdk/releases
下载 ARCore_1.10.0_x86_for_emulator.apk
把ARCore_1.10.0_x86_for_emulator.apk文件拖到模拟器屏幕安装ARCore
Unity项目Build And Run 安装ARCore AR应用到模拟器
运行结果:

网友评论