Unity GVR纸板相机在Android上无法正常工作 [英] Unity GVR Cardboard Camera incorrect work on Android

查看:117
本文介绍了Unity GVR纸板相机在Android上无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经准备好使用Google VR纸板的统一环境.示例项目运行良好,一切都很好. 在我的项目中,我有主摄像机"对象,该对象在场景中移动.我已经在摄像机中添加了"Strereo Controller"(脚本)组件,它在Unity编辑器中可以正常工作.但是,当我在Android设备上开始项目时,相机仍然停在一个位置,并且不会移动.会是什么?

I have prepared unity environment to work with Google VR cardboard. Sample project performs fine and all is good. In my project I have Main Camera object, which moves across the scene. I've added "Strereo Controller" (Script) component to the camera and it works fine in Unity editor. But when I start project on Android device camera stand still on one place and doesn't move. What can it be?

推荐答案

您无法移动VR摄像机,它是确定 mainCamera 位置的SDK.

You can't move the VR Camera, it's the SDK that determine the mainCamera position.

要移动相机,您只需将新的GameObject作为mainCamera的父级,然后移动父级GameObject

In order to move your camera you can just make a new GameObject as a parent of your mainCamera then move the parent GameObject

这篇关于Unity GVR纸板相机在Android上无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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