Google Cardboard SDK无法在Unity 5.4.1f中使用(未加载Gvr控制器脚本) [英] Google Cardboard SDK not working in Unity 5.4.1f (Gvr Controller script not loaded)

查看:162
本文介绍了Google Cardboard SDK无法在Unity 5.4.1f中使用(未加载Gvr控制器脚本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google Cardboard SDK与Unity 5.4.1f(免费)一起使用.使用SDK导入unitypackage后,我尝试运行演示场景,但仅看到冻结的相机.我不能用鼠标环顾四周,只能静态图片.而且我在控制台"和检查器"选项卡中看到了错误.这是屏幕截图:

I'm trying to use Google Cardboard SDK with Unity 5.4.1f (Free). After importing the unitypackage with SDK, I tried to run the demo scene, but I see only freezing camera. I can't look around with mouse, just static picture. And I see the errors in Console and Inspector tab. Here is the screenshot:

我尝试导入不同版本的Cardboard SDK,还尝试了Unity 5.3,但出现了相同的错误.请帮助我,我不知道这是怎么回事.

I tried to import different versions of Cardboard SDK and also tried Unity 5.3, but got the same errors. Please help me, I don't know what's wrong with it.

推荐答案

该项目可能已损坏.确保您拥有的Unity版本是用于构建 Google Cardboard SDK 的版本.

The project is likely corrupted. Make sure that the version of Unity you have is > the version used to build the Google Cardboard SDK.

如果那不是问题,请关闭Unity,删除当前的 Google Cardboard SDK 项目和插件.在此处下载新版本.

If that's not the problem, close Unity, delete the current Google Cardboard SDK project and plugin. Download fresh version here.

下载后,导入 GoogleVRForUnity.unitypackage 文件.这应该可以解决您的问题.

After downloading it, import the GoogleVRForUnity.unitypackage file. This should fix your problem.

编辑:

最新的Google VR SDK更新中的更改. VR演示场景现在需要 VR 技术预览.您可以在此处获得最新的Unity版本.向下滚动到页面末尾. 最新版本 5.4.2f2-GVR10 .

Things changed in the latest Google VR SDK update. The VR Demo Scenes now require VR Technical preview to work. You can get the latest Unity version for VR here. Scroll down to the end of the page. The latest version 5.4.2f2-GVR10.

一旦下载了此版本的Unity UNITY_HAS_GOOGLEVR,它将在Unity中定义,您现在可以运行 ControllerDemo 演示.

Once you download this version of Unity UNITY_HAS_GOOGLEVR will be defined in Unity and you can now run the ControllerDemo demo.

注意:

可以 Assets \ GoogleVR \ DemoScenes \ HeadsetDemo 目录中运行 DemoScene 场景,而无需下载Unity GVR版本.右键单击 Project 选项卡,然后单击全部导入.

You can run the DemoScene scene in Assets\GoogleVR\DemoScenes\HeadsetDemo directory without downloading the Unity GVR version. Right click on the Project tab then click Reimport All.

您只是无法 Assets \ GoogleVR \ DemoScenes 目录中运行 ControllerDemo 场景,而无需下载Unity GVR版本.

You just cannot run the ControllerDemo scene in Assets\GoogleVR\DemoScenes directory without downloading the Unity GVR version.

这篇关于Google Cardboard SDK无法在Unity 5.4.1f中使用(未加载Gvr控制器脚本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆