Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: drawmaster77 on January 08, 2014, 10:23:23 PM
-
I am using a UIPanel with a scroll view script. Panel is anchored on top and bottom to the UIRoot. That way when window is resized, panel clipping is updated and its contents are clipped properly:
(https://dl.dropboxusercontent.com/u/5102757/TankGame/panelProblem1.png)
If I dont resize window or reize it making it bigger, everything works fine, however if I size it down panel clipping values set to NaN and everything breaks down requiring to restart game. This happens with both Alpha and Soft Clip settings.
(https://dl.dropboxusercontent.com/u/5102757/TankGame/panelProblem2.png)
-
That seems like a bug of some kind. Have you tried anchoring to the camera instead of the UIRoot?
-
That seems like a bug of some kind. Have you tried anchoring to the camera instead of the UIRoot?
No I haven't. After some more testing I found out that this happens only with collapsible categories (like in your Quest demo). However in my case they are a little more complex as they contain UITable themselves. There were a number of other odd things happening using the tweening to hide/show things inside (like UITable that was inside the tween not sorting properly), so I just took the collapsible category feature out and it seems to work well otherwise.