oddgames / UIToolkit

Single draw call UI solution for Unity with multi resolution support and more.
518 stars 153 forks source link

ClipToBounds() causing hidden flags to Reset #127

Open nsandhu opened 12 years ago

nsandhu commented 12 years ago

When parenting button objects to the scrollable vertical container when ever the ClipToBounds() function is called in the UIAbstractTouchableContainer.cs it causes my hidden buttons in the scroller to unhide and appear. Basically, I hide specific buttons but whenever I touch the scrollable list it does an update and automatically unhides the button due to the ClipToBounds() function. I tried to add a

If(!hidden) { //do original code }

This didn't seem to work.

Any ideas?

Thanks!