Yo! I’m attempting to create a toolbar for a level editor in my game, but I’m having trouble getting it to look just right. There are a few rules for the toolbar I’m trying to make:
- Each element in the toolbar should keep it’s aspect ratio
- eg. a square is always square, a rectangle always has the same aspect ratio
- There should always be padding on the top and bottom of each element relative to the toolbar’s height
- eg. each element should have padding on the top and bottom that’s equal to 1/6 of the toolbar’s height
- this also means that the height of each element should always be 4/6 of the toolbar height
- Each element should be equidistant with each other
Based on these rules, any resolution for a specific aspect ratio should look the same (every 16:9 aspect ratio should look the same, every 3:4 should look the same, etc).
So, I’m here to ask if it’s possible to do this system with the default canvas UI systems in unity (layout groups, elements, etc). I’ve tried multiple configurations and haven’t been able to achieve what I want, but there’s a good chance I’ve missed something. Does anyone know if this is possible using the default UI layout components in Unity?
