在某些手机上,垂直布局中的Gameobject实例显示不同。

huangapple go评论46阅读模式
英文:

Gameobject instance in vertical layout shows different in some phones

问题

我在Unity上制作游戏,但在一些设备上遇到了问题。

垂直布局的行是游戏对象实例,但在三星和摩托罗拉设备上显示不正常[错误](https://i.stack.imgur.com/trV47.jpg),在小米设备上显示正常

我尝试更改滚动视图的属性值,但无法使其正常工作。

英文:

i make a game on unity and i am having problems in some devices.

the row of the vertical layout are Gameobject instances, but it shows bad in samsung and motorola wrong on xiaomi shows just like this good

i tried to change the values of the properties of the scroll view but i couldnt make it work

答案1

得分: 1

对于每个位于“名称”下的UI文本元素,您需要设置RectTransform的锚定值。我猜你是通过代码生成文本元素的。在这种情况下,在实例化时,您必须更改属性。如果您需要帮助,请告诉我,我会编辑我的回答。

英文:

For each of the UI Text element under Nombre ('Name'), you have to set RectTransform's Anchor values. I suppose you are generating the text elements through code. In that case you have to change the attribute while instantiating. Let me know if you need help, I will edit my answer.

huangapple
  • 本文由 发表于 2023年2月19日 21:03:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/75500337.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定