Author Topic: Object Depth and panels  (Read 2100 times)

SJones

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Object Depth and panels
« on: October 21, 2012, 10:48:05 PM »
I have been doing some research and found an interesting topic on animated objects being put under a different panel for optimising so that there is no need to re-draw all UI objects to get the 1 draw call, with this in mind I attempted this method and found that the depth value no longer has an effect, somewhat expected as they are being rendered in different calls now, however I cant seem to get any depth control.

I have a constantly animated part of the screen that is using a semi transparent texture, that I want to render behind all other UI elements, I have placed it on its own panel and currently it seems to render it as if its on the same layer, am I doing something wrong or is this something that can not be done in NGUI?

dlewis

  • Guest
Re: Object Depth and panels
« Reply #1 on: October 22, 2012, 01:25:41 AM »
Objects in different panels can't be sorted via depth, they have to be sorted via z-position

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile