Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: svf on March 03, 2014, 05:44:39 AM
-
Hi there,
I've got some problems on scrollviews when it comes to clipping.
I add the scrollview-content in my code by just setting "Button1.Parent = ScrollViewB". It seems to always work for the direct children of the ScrollView but for deeper levels it isn't.
1. Deeper levels below my ScrollView don't seem to be clipped.
2. Same Problem with nested ScrollViews, when I scroll ScrollViewB buttons are clipped correctly, but if in the case of ScrollViewA where only a part of ScrollViewB is visible the buttons are still visible.
--UIRoot
----Camera
------ScrollBarA
------ScrollViewA
--------ScrollBarB
--------ScrollViewB
----------Button1
----------Button2
----------Button3
----------Button4
In the attachment you can see the effect. Red is behaving correctly. But Blue is not clipped.
Is there something I do need to call? I saw this UIPanel.AddWidget() function, could that be a problem? That the childs are not added that way to their parent (ScrollView)? Or Depth?
Thanks for any help!
-
ScrollViews don't nest. The clipped area is per panel.