I have implemented a system of Tabs with the 4.6 UI. The tab buttons themselves are working fine (they’re based on Toggles), they enable/disable their panel properly.
My problem is: all the panels are supposed to occupy the same area but the three default LayoutGroup (Vertical, Horizontal, Grid) are trying to put their children side by side. I want to create a LayoutGroup that
- make all its children overlap
- return the biggest MinSize or PreferredSize (for each direction )as its own Min/PreferredSize.
I have difficulties finding examples of custom LayoutGroup components. The documentation isn’t very helpful as it has barely been written yet: Unity - Scripting API: LayoutGroup .
Does anyone know where I can find this information?