Hi!
We're building our entire UI with NGUI and I like most of it. Over the time I figured how to work with NGUI concepts, but there's one thing I can't figure out: order of elements.
My latest isssue is with UIInput. I created a simple input and my background sprite is hiding the text. Whatever I do except disabling background it doesn't work. However, if at runtime I change Z value of label it works.
If I set it at design time, it gets reset at runtime. Workaround is to set background Z value to positive (more distance from camera) and then it works. BUT, I never have a clue what value to set it to, because it might then go behind my other background on the same scene. I understand this is issue with different atlases in which NGUI's depth property is not working (is that correct?)
I've run into similar issues with other widgets and hierchies and mostly been solving it with trial and error by trying out different Z values, which is terrible.
Also I've been trying to set some Z positions from my code, but then I run into a problem which I guess is caused by the fact that NGUI uses 0.00025 multiplier for all positions?
I know this is not a clear question, but can you maybe shed some light or give some guidelines on how to handle order of UI elements when they're not in the same atlas?
I would very much like to do this in a proper and consistent manner instead of this blind trial and error.
Any help, guidelines or direction would be welcome.
Thanks!