The Unity user interface (UI) has many layout features, like vertical and horizontal layouts. How items fit into these rely on many fators like Control Child Size, Use Child Scale, and Child Force Expand. These factors can be further augmented with by giving children the layout element script, and changing things like flexible width and height.
Videos:
Grid layout:
Downloads:
Unity downloads Archive: https://unity.com/releases/editor/arc...
If this was helpful, consider leaving a comment or supporting me on Ko-fi: https://ko-fi.com/classoutside
===== TIMESTAMPS =====
0:00 Introduction and requirements
0:14 Creating a Unity project and setting up the canvas
0:43 Using Vertical Layout Group and adding UI elements
1:20 Exploring layout group options: spacing and scale
2:31 Control Child Size and resolving zero-size issues
3:07 Using Layout Element for flexible sizing
3:43 Creating custom height ratios with layout elements
4:11 Wrap up