GoogleVR与unity2019(cardboard)

1.下载GoogleVRForUnity_1.200.1

链接:https://pan.baidu.com/s/1Q_kMl6rIyQr-39hYSANJvw
提取码:m5nt

2.unity创建项目后

双击安装导入
GoogleVR与unity2019(cardboard)
(本文使用的unity版本是unity2019.4.4f1)

3.转换平台

因为转换Android平台的速度跟项目大小有关系,所以在创建项目之后就转换平台是最快的啦。

点击file–>build Settings 后点击Android,点击switch platform
GoogleVR与unity2019(cardboard)

注:前提是从unityHub安装时,选择安装过Android平台。没有的可以通过添加模块重新添加

GoogleVR与unity2019(cardboard)
需要全部勾选添加。
GoogleVR与unity2019(cardboard)
打开Edit–>preferences后JDK和SDK没有警告就是安装成功了。(因为我openJDK一直没通过unityHub下载成功,所以我自己去找了jdk)

jdk链接:https://pan.baidu.com/s/1Nh-gDfUrFhd8dI0zLTNfXQ
提取码:gurr
GoogleVR与unity2019(cardboard)

4.导出apk前的设置

(1)打开Player Settings

GoogleVR与unity2019(cardboard)

(2)设置XR Settings

GoogleVR与unity2019(cardboard)
勾选之后,添加cardboard
GoogleVR与unity2019(cardboard)

(3)设置Other Settings

GoogleVR与unity2019(cardboard)
在Other Settings中往下翻,更改packageName(随便改一改,只要是xx.xx.xx格式就可以)
Minimum API Level 改为19
GoogleVR与unity2019(cardboard)

4.导出apk

GoogleVR与unity2019(cardboard)
安装到手机就可以运行啦!

PS:强烈推荐一个UP主,小意思VR!

GoogleVR与unity2019(cardboard)
附:本文学习的视频
https://www.bilibili.com/video/av98014336/

相关文章:

  • 2021-04-07
  • 2021-08-10
  • 2022-12-23
  • 2021-11-17
  • 2021-08-07
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-09-04
  • 2021-10-10
  • 2021-11-13
  • 2021-04-04
相关资源
相似解决方案