软件要求:Unity 2021.3.32f1 或更高版本
确保在安装过程中提供 Android 和 iOS 构建支持。
必须安装 Git,并且 git 可执行文件必须位于 PATH 环境变量中。如需了解详情,请参阅 Unity 的软件包管理器 git 支持文档。 https://docs.unity3d.com/Manual/upm-git.html
Git 安装包如下
链接:https://pan.baidu.com/s/1uG0yFizH7YrAEy3CKWINJQ
提取码:41hs
考文档:https://developers.google.cn/cardboard/develop/unity/quickstart?eqid=8075516300071a7000000002645ce97d&hl=zh-cn
创建项目
在 Unity中,转到Window > Package Manager。
单击+并选择从 git URL 添加包。
粘贴https://github.com/googlevr/cardboard-xr-plugin.git到文本输入字段中。该包应添加到已安装的包中。
导入安装时会弹出对话框 点击 Yes 重启unity
重启完成再打开 依次点击 Google Cardboard XR 插件 > Samples >Import 安装案例