Author Topic: 4 widgets sharing depth of 1  (Read 2705 times)

Saxi

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 24
    • View Profile
4 widgets sharing depth of 1
« on: August 06, 2014, 02:27:44 AM »
I have four sprites in the scene, there is empty game object with nGUI sprite and nGUI Label as separate game objects.  I get a message on the sprite that 4 widgets are sharing the depth of 1.  Same with Labels but complaining about depth 2.

These 4 sprites are prefabs, they are not overlapping so I would expect them to all be instantiated with the same depth.  Should I be changing the depth of each sub object when I instantiate the prefab, even though they are not sitting on top of each other? 

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: 4 widgets sharing depth of 1
« Reply #1 on: August 06, 2014, 07:51:30 AM »
Not it doesn't matter; it's just a warning, in case you get unexpected results.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: 4 widgets sharing depth of 1
« Reply #2 on: August 07, 2014, 01:18:14 AM »
Panel depth sharing is a warning. Widget depth sharing is just an info message.