have been using NGUI recently for a game that i'm developing. still new at this.
background:
i'm using 1 atlas
i'm using just 1 big panel (like main screen UI) with lots of buttons here and there.
when i clicked on a button, a window (say window1) will appear in the middle of the screen (just using NGUITools.SetActive to activate the relevant gameObject).
but i found a very weird problem, which is that if i have a UILabel text on a button in the main screen UI, even when window1 appears, the text on the UILabel will appear infront of window1. naturally, the idea is to have the window "overlap" on top of what's on the main screen UI.
i had checked the depth layers, and all appears to be correct, with the window1 depth layers to be higher in number (technically, will appear in front).
i asked a fellow developer, and he suggested using the z coordinates, which seemed to work. but is this the correct solution? maybe i'm doing something wrong with NGUI?