Hey guys,
So I have a much better understanding of how NGUI does batching and how panels work. From what I've read, resizing/moving panels is cheaper than widgets, because the widgets will rebuild the mesh if you move/rotate/scale them.
I've got a panel with a scroll view. Underneath it is 3 UIWidgets which are 3 pages of data (They contain some labels, etc). You navigate these pages by swiping side to side.
All of this is 1 draw call because I only use a single UIPanel. But would it be better to break up each page into its own sub-panel? The scroll view is scrolling those 3 UIWidgets - from what I understand, this means that the panel must regenerate the mesh of all its children because those widgets are now moving? Is this correct? If the contents of those 3 widgets was static, and I made them UIPanels instead, then NGUI won't have to regenerate the meshes?
-UIPanel (+Scroll view)
--UIWidget
---*Labels, etc*
--UIWidget
---*Labels, etc*
--UIWidget
---*Labels, etc*
vs
-UIPanel (+Scroll view)
--UIPanel
---*Labels, etc*
--UIPanel
---*Labels, etc*
--UIPanel
---*Labels, etc*
Edit:
Or would this make a difference?
-UIPanel (+Scroll view)
--UIPanel
---UIWidget
----*Labels, etc*
--UIPanel
---UIWidget
----*Labels, etc*
--UIPanel
---UIWidget
----*Labels, etc*