英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论