Hi, I have this situation at the moment: a UISprite which must hide some widgets behind it, so it's like when you can click on a widget it goes in front of the Sprite and if it is not clickable it goes behind. The widgets and this sprite are under the same panel, so what I'm trying to do is: when a widget should be visible (clickable) I take the depth of the sprite, which for instance is 100, and put the widget depth to 101. When a widget must be hidden, i decrease its depth so that is behind the sprite. The problem is that the widgets contain child elements, like labels and other sprites, and changing the depth of the widget does not change the depth of the children, which remains hidden under the panel! Now, since I wanted to avoid taking all the components of the children of a widget and modify their depth every time (a bit expensive and error prone), is there a way to make the depth of the widget parent inherit from the children? NOTE also that in my situation I cannot afford having multiple panels (since one panel is one draw call and I have really a lot of widgets here).
Many thanks