Unity3D + Google Cardboard SDK = 无 UI 遮罩 [英] Unity3D + Google Cardboard SDK = No UI masking

查看:31
本文介绍了Unity3D + Google Cardboard SDK = 无 UI 遮罩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UI 遮罩不适用于 Google 的 Cardboard SDK?它与 Oculus Mobile VR 插件一起正常工作,但使用 Cardboard SDK 时,面具似乎消失了.

UI mask do not work with Google's Cardboard SDK? It works properly with the Oculus Mobile VR plugin but with the Cardboard SDK the masks seem to be gone.

http://postimg.org/image/b2by7exu9/

此屏幕截图演示了这一点,在白框之外,我们不应看到任何文本.

This screenshot demonstrates it, outside of the white box we should not see any text.

http://postimg.org/image/ts8wgfu7l/

在编辑器和禁用 VR 模式的情况下看起来不错.

In editor and with VR Mode disabled it looks fine.

  • 有没有人遇到过这个问题并知道如何解决?
  • 我应该朝哪个方向进一步调查?

我已经在 Note 4 和 Galaxy S3 上用两个不同的项目尝试过构建,只是为了确定.日志没有显示醒目的线条.我用谷歌搜索并没有找到与此问题相关的任何内容.答案和论坛一样.

I already tried the builds on Note 4 and Galaxy S3 with two different projects just to be sure. Logs didn't show striking lines. I googled and did not found anything related to this issue. Answers and forums the same.

非常感谢任何建议!

推荐答案

我发现在使用 Google Cardboard 的 Unity 5.6.0f1 中仍然会发生这种情况.我能够通过进入 Cardboard SDK 设置(PlayerSettings (Android) -> Other Settings -> Virtual Reality SDKs -> Cardboard)并将深度格式切换为24-bit depth | 8-bit stencil"来修复它(因为UI 掩码使用模板缓冲区).这为我解决了屏蔽问题.

I discovered this still happening in Unity 5.6.0f1 with Google Cardboard. I was able to fix it by going into the Cardboard SDK settings (PlayerSettings (Android) -> Other Settings -> Virtual Reality SDKs -> Cardboard) and switching the depth format to "24-bit depth | 8-bit stencil" (since the UI mask uses the stencil buffer). This solved the masking problem for me.

这篇关于Unity3D + Google Cardboard SDK = 无 UI 遮罩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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