Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: N3uRo on February 06, 2014, 12:41:54 PM
-
Yesterday I was layouting an app and I got disappearing random widgets. I didn't have this problem < 2.7.0 where you had to fight with depth VS Z.
My guess is that is has to be when you use empty widgets (for layouting, creating container, etc...) inside a clipped panel. It seems that it messes depth.
I thought that a UIPanel would ignore a UIWidget depth because it doesn't draw anything but it doesn't seem like that.
-
If you have UIWidget containers immediately under the scroll view, currently NGUI uses their bounds to determine if they should be culled or not. It won't consider the children. It's a questionable optimization that I'm likely going to remove as people seem to be running into this.
If you use UIWidget containers immediately under your scroll view, make sure that their bounds actually envelop the contents of their children.
-
I understand that but without any warning, note or something it's a problem that it's very likely to happen to others and when it happens it's very confusing.
-
Yup, I agree -- which is why I fixed it in 3.4.9 :)