I think the UI has fundamental issues when it comes to making scalable interfaces.
Basically, there are few things I’d like to point out:
For one thing, there’s no proper grid layout. Horizontal and Vertical layout groups are step in the right direction, and remind me of QVerticalLayout and QHorizontalLayout for qt.
However… grid layout is … uh… really weird in comparison. There’s no way to set grid size, no way to set desired column size, no way to set row/column span for an item. Basically, it is pretty much useless for anything.
Next… several components are designed by assembling gameobjects together. Examples are slider, dropdown, text input, etc. The issue here is two-fold: First, component sizes are often specified in absolute coordinates. For example, slider knob size is specified in pixels, to adjust the size, you’d need to dive into object hierarchy and what it means is that if, say, slider gets suddenly stretched vertically/horiztonally, the knob will shrink. Similar issue happens with dropdown, when suddenly enlarged dropdown still spawns tiny list. Also, UI has amazing functionality called “best fit” for text components, the problem is it is “off” by default pretty much everywhere.
Here’s what I think:
It would be nice if whoever works on unity’s uGui system took a look at qt 5 and spent a month or so working with it and then stole few ideas from there and reapplied them into unity gui.
Basically, I have impression that the idea of unity ui being composed out of gameobjects is not exactly right, and approach where the UI component builds its own mesh (with text, material and all) or work in a fashion similar to Qt’s QPainter class could work much better. After all, digging through children of a text input field in order to adjust text size feels really awkward.
Another thing is that layout system needs to be improved. I think that vertical/horizontal layouts are step in the right direction, but there needs to be an equivalent of a spanner component, and grid layout is poorly implemented. Basically, grid layout should act in a manner similar to html table and not attempt to use fixed sized cells everywhere. There should be mechanisms for cell/column spans, and should be a way to set row coclumn sizes in percentages. Rows and columns should also take minimum, maximum, preferred size into account.
Example of Qt layout system in action can be found here: