零、最终效果
Unity使用Vuforia插件进行AR开发
一、资源准备
1、在Unity中添加Vuforia插件
(1)在UnityAssetStore中搜索Vuforia插件并添加到自己的资源中
网页地址:https://assetstore.unity.com/packages/templates/packs/vuforia-engine-163598
(2)在Unity中下载并导入Vuforia资源包

(3)判断是否导入成功

2、获取Vuforia许可证
(1)作用
Vuforia许可证用于后续应用的导出,没有Vuforia许可证不能将项目作为应用导出
(2)在Vuforia官网注册账号
Vuforia官网地址:https://developer.vuforia.com/home
(3)获取许可证
(4)将许可证编码添加到自己的Unity项目中
二、实现图片AR交互效果
1、添加一个ARCamera
相当于是用户使用时的摄像头
2、添加一个ImageTarget

3、在ImageTarget中添加照片识别后想要出现的对象

4、导出apk使用

三、其他AR交互效果
待更新