为什么我的 Unity 游戏的 ui 元素无法在 Google Play 商店中运行?
我在游戏中添加了一些 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是一个比例问题,要修复此问题,请在 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