Unity 5.4.2f-GVR13中的Daydream非VR模式 [英] Daydream Non-VR Mode in Unity 5.4.2f-GVR13

查看:133
本文介绍了Unity 5.4.2f-GVR13中的Daydream非VR模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上周,我尝试将Unity项目集成到Daydream中,集成进行得很好.

last week I tried to integrate my Unity project to Daydream, the integration went fine.

现在,我正尝试从应用程序的其余部分中分离出第一个场景(包括登录过程,因此我需要android软键盘)-我希望该应用程序像任何android-non-vr应用程序一样打开并切换仅在前两个场景之后才进入VR模式.

Now I am trying to seperate the first scenes (which include login process so I need the android soft-keyboard) from the rest of the application - I want the application to open like any android-non-vr application and to switch to VR mode only after the first two scenes.

我读到Unity工作人员的一些回答,即在支持虚拟现实"设置中的"Daydream"之前添加"none",从而使应用程序以非VR模式启动.

I read in some answer by Unity staff member that by adding "none" before "Daydream" in the "Virtual Reality Supported" settings the application starts in a non-VR mode.

虚拟现实支持的设置

现在我正在尝试通过C#脚本在运行时切换到VR模式.

and now I am trying to switch in runtime to VR mode through C# script.

现在,我尝试在运行时中更改GvrViewerMain的"VR模式启用",但是它没有将应用程序切换到VR模式.

By now I tried to change "VR Mode Enable" of the GvrViewerMain in Runtime but It doesn't switching the application to VR Mode.

有人知道如何/是否可以做到吗?

Does anyone know how/if it can be done?

推荐答案

将构建设置中的最低api级别更改为Android 7.0牛轧糖".

Change your minimum api level in build setting to Android 7.0 'Nougat'.

这篇关于Unity 5.4.2f-GVR13中的Daydream非VR模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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