为什么我的 Unity 游戏的 ui 元素无法在 Google Play 商店中运行?

发布于 2025-01-10 07:12:16 字数 127 浏览 5 评论 0原文

我在游戏中添加了一些 ui 元素,当连接到统一遥控器时,它们可以在统一和我的设备上正常工作。

但我把它上传到谷歌播放,下载了它,有些文字没有出现,按钮不可按下,背景由于某种原因是红色的(应该是蓝色的)。有人知道发生了什么事吗?

I added some ui elements to my game and they work properly in unity and on my device when connected to unity remote.

But I uploaded it to google play, downloaded it, and some text doesn't appear, buttons aren't pressable, and the background is red for some reason (supposed to be blue). Anyone know what's going on?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

厌倦 2025-01-17 07:12:16

这可能是一个比例问题,要修复此问题,请在 UI 元素中使用锚点,方法是使用锚点预设或使用锚点或使用昆虫中的锚点最小值和最大值,使其随大小缩放,您可以设置其 UI 比例随着屏幕尺寸缩放的模式。(https://docs.unity3d.com/Packages/[电子邮件受保护]/manual/HOWTO-UIMultiResolution.html)。如果有帮助请告诉我

It may be a ratio problem, to fix this use anchors in your UI elements by using the anchor presets or by using the anchor or by using the anchor min and max values in insector, to make it scale with size you can set its UI Scale Mode to Scale With Screen Size.(https://docs.unity3d.com/Packages/[email protected]/manual/HOWTO-UIMultiResolution.html). Let me know if that helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文