Author Topic: Can nGUI handles hundreds of elements withing 1 call if its on same atlas?  (Read 4233 times)

dare

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
HI,

     I have long hierarchical & complex UI(Image attached) made up with Unity's UI but it is not giving good result with drawcall. It gives 100+ call even all sprites share 1 atlas. I want to know here that can nGUI manage these kind of scenario with 1 or minimal calls if sharing 1 atlas? or it also has issue like overlaping UI create 1 call each etc.? I want to know these before I buy it.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Yes. As long as you keep all of those widgets under 1 panel (Unity calls them canvases), you will only get 1 draw call.

The order in which widgets are drawn depends on depth.

Camera depth > Panel depth > Widget depth.