Home > Blockchain >  How can I stop the automatic resizing of an Element in a Horizontal Layout Group in Unity?
How can I stop the automatic resizing of an Element in a Horizontal Layout Group in Unity?

Time:09-22

here is my problem: I want to have a bunch of Text-GameObjects to be evenly distributed across the screen horizontally. So I took a Layout-Group and added it onto a Panel, which is streched across the screen, with the following settings: Example 1

And here is the solution working: Example 2

In the example, the parent objects are panels with Image components. I only did this to show that there is a divide between each object like you want. You can remove this component and still have the object retain its structure.

  • Related