Author Topic: UITexture blocks my UI  (Read 1877 times)

drawmaster77

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
UITexture blocks my UI
« on: January 21, 2014, 05:32:57 PM »
I am trying to use UITexture for backdrop but it covers some of my UI elements. I tried setting the depth to very small number and also tried moving it back but it does not help.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UITexture blocks my UI
« Reply #1 on: January 21, 2014, 06:11:05 PM »
Are you using a custom material? Try to see what the renderqueue of the UITexture is compared to the panels.

drawmaster77

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 21
    • View Profile
Re: UITexture blocks my UI
« Reply #2 on: January 22, 2014, 12:17:50 AM »
no I am using default NGUI ulit transparent I think? In fact I can just copy the backdrop from Example Quest scene and paste that into my scene and I am having the same problem.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UITexture blocks my UI
« Reply #3 on: January 22, 2014, 02:01:30 AM »
In the quest example the backdrop is on its own panel (UI Root panel). Widgets are always sorted by panel's depth first, and only then by their own depth. If you have more than one panel, you need to adjust their depths accordingly.