Author Topic: About the Atlas Layer  (Read 3163 times)

hisashipong

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
About the Atlas Layer
« on: May 08, 2013, 04:31:42 AM »
I got a question with mutely Atlas Layer display

I'm using dynamic Fonts now, the first pic showing my problem

Button background is a black board (GUI_Atlas - Layer 0) with a Label - "Item Name" (Dynamic_Arial_32 - Layer2)
The red circle (GUI_Atlas - Layer 1) with a Label - "new" (Dynamic_Arial_32 - Layber3)
Panel - just tick panel tool

the second pic, removed "new" Label
Panel - tick Depth Pass
move the z to use 3d Depth to adjust the Layer
the Label - "Item Name" finally behind the red circle

the third pic , put back "new" top view of the Label's position
the layer order from the top to the bottom
--- Background---
--- Label ---
--- Icon ---

Panel - tick Depth Pass
--- Background---
--- Label ---
--- Icon ---
--- Label ---

move the "new" Label z to the most front part, then it makes the "Item Name" to the most front part too , even "Item Name" z have at the right position

the forth pic , front view of the Label

i dun know how to solve this problem
anyone can give me a hand?
Thanks so much




Isamson

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 52
    • View Profile
Re: About the Atlas Layer
« Reply #1 on: May 22, 2013, 03:20:42 PM »
Hi hisashipong,

I faced the same problem but managed to fix it without adding any extra draw calls. You simply have to add a new panel within your panel and adjust your Z

ex:
UI Root(2D)
   Camera
      Main Panel
         Background button
         Panel_Top_Button
             TopButton

Don't know if it's the right way to do it, but it seems to work for me!
Unity 4.5.3f
NGUI 3.7.0

freeglass

  • Guest
Re: About the Atlas Layer
« Reply #2 on: June 08, 2013, 12:22:25 AM »
NGUI Depth Manager you requested issues can be fixed by using.

This program is a tool designed to help solve problems that occur while using NGUI Widgets Depth .

NGUI Depth Manager in AssetStore