Wednesday, March 9, 2016

The secret lies in the layout groups

I have been working lately to solve my chronic ineptitude with  Unity3d GUI. One of the pending issues was to deal with complex widgets, where all elements overlaped each other when the resolution changes. I had a hunch that perhaps layout groups were the solution for this, so I decided to spend some time doing tests, as I could not find a decent tutorial (which later, I did, in Youtube).

And indeed, I solved most of my problems with the layouts. They help to keep the widget children organized, deals with resizing, etc. I managed to fix the inventory window in my RPG project and now it is almost finished. The only left issue is to implement scrolling for the item list.

No comments:

Post a Comment