Author Topic: 3.0 UIPanel Depth/DrawCall Management  (Read 24205 times)

hitmax87

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: 3.0 UIPanel Depth/DrawCall Management
« Reply #30 on: January 10, 2014, 03:12:10 AM »
Hello! I have 2 sprites, as "sandwich" in one main gameobject root. And I rotate root gameobject , to show one side or another side. And there is a problem! The depth is same, but z position ignored, and in my case, one sprite always is on another sprite.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 3.0 UIPanel Depth/DrawCall Management
« Reply #31 on: January 10, 2014, 05:55:13 PM »
Z is always ignored by default unless you mess with UIPanel settings. NGUI sorts everything using the custom Depth value specified on widgets and panels.