在Google Pixel上运行google-vr unity daydream应用 [英] Running google-vr unity daydream app on google pixel

查看:149
本文介绍了在Google Pixel上运行google-vr unity daydream应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行google像素手机上的白日梦页面中提供的示例应用程序.

Im trying to run the sample app provided in the daydream page on the google pixel phone.

1)我将构建设置更改为android. 2)进入了启用虚拟现实支持的播放器设置,并选择了谷歌白日梦作为平台. 3)我将Minumum API更改为API级别24. 4)我将包含adb的文件夹添加到Windows中的path变量中. 5)我还设置了Android SDk的路径. 6)我在Pixel上启用了USB调试功能

1) I chnaged the build settings to android. 2) Went to player settings enabled Virtual reality support and selected google daydream as the platform. 3) I changed the Minumum API to API level 24. 4) I added the folder containing my adb to the path variable in windows. 5) I also set the path of the android SDk. 6) I enabled USB debuggin on Pixel

但是,当我运行我的应用程序时,出现以下错误:

However when I run my app , I get the following errors:

在编辑器模式下不支持设备白日梦.请在目标设备上运行. 和.. 无法从控制器仿真器应用程序事件套接字读取. 验证控制器仿真器应用程序正在运行.

Device daydream not supported in Editor Mode. Please run on target device. And.. Failed to read from controller emulator app event socket. Verify that the controller emulator app is running.

推荐答案

我支持,您想在您的编程环境(在本例中为Unity)上调试Daydream应用.

As I suppouse, you want to DEBUG your Daydream app on your Programming Environment (Unity in this case).

注意:此解决方案可让您在PC上进行调试,但是您需要将一台Pixel Phone连接到PC上,以及一台Daydream Controller .

首先,如果您还没有下载Google所提供的示例,我建议您将其下载到Github: https://github.com/googlevr/gvr-unity-sdk/releases

First of all I recommend you to download the samples provided by Google on Github if you have not done it yet: https://github.com/googlevr/gvr-unity-sdk/releases

加载任何场景时,您会看到Daydream基本集是由诸如以下的层次结构组成的:

When you load any scene you'll see that the Daydream basic set is composed for a hierarchy like:

所选的两个组件是海豚的关键,如果您想从PC调试Daydream,则需要将Instantdreamview应用程序链接"到您的daydream控制器.如果您进入场景"GvrInstantPreviewMain",即时预览就会立即下载到您的手机上.

The two selected components are key for your porpouse cause if you want to debug Daydream from your PC you'll need to "link" your daydream controller with InstantPreview App. Instant preview will downloaded instantly on your phone if you got in your scene the "GvrInstantPreviewMain".

InstanPreview Google信息: https://developers.google.com/vr/develop/unity/instant-preview

InstanPreview Google Info: https://developers.google.com/vr/develop/unity/instant-preview

打开应用程序后,像素手机上可能会发生三件事:

When the app has been opened, can happen 3 things on your pixel phone:

  1. 一切正常.
  2. Daydream即时预览信息,可通过USB纠正设备.
  3. 带有一些文本的灰色屏幕.

如果您使用的是2.

当您的Unity项目从手机上取消同步并且您会看到类似以下内容的情况时,似乎会发生这种情况:

This seems to happen when your Unity Project is desynchronized from your phone and you'll see something like:

关闭手机上的InstantPreviewApplication,关闭您的统一项目(请记住以保存您的进度),然后再次打开您的统一项目.那几乎总是解决了我.

Close InstantPreviewApplication on your phone, close your unity project (remember to save your progress), and open again your unity project. That has almost always solved me.

如果您使用的是3.

当instan预览正在等待Unity Play模式时,似乎会发生这种情况. 您只需要在Unity Poject上按Play.

This seems to happens when instan preview is waiting for Unity Play Mode. You only need to press Play on you Unity Poject.

如果可以移动耳机摄像头但找不到控制器标线,请记住按(并维护)Daydream控制器上的同步"按钮.

Remember to press (and mantain) synchronize button on your Daydream controller if you can move the headset camera but can't find your controller reticle.

这对我有用.

我还向我自己的Unity项目添加了该方案,该方案适用于Daydream和GearVR,以防其他人测试我的解决方案: https://github.com/ls29322/VR_GalleryApp

I also append my own Unity project with this scheme that works bought for Daydream and GearVR in case helps someone else to test my solution: https://github.com/ls29322/VR_GalleryApp

这篇关于在Google Pixel上运行google-vr unity daydream应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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