Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: m3taphysics on October 01, 2012, 04:22:07 PM
-
Even if the UIGrid item isnt active (its not being rendered) the collider is still active. If the grid is covering buttons this tends to overlay and stop the button from being used.
Whats the solution?
-
You mean items outside the clipping area? Put a collider covering them like in the example.
-
Yes items that are clipped the colliders arent disabled so they obstruct buttons outside of the clipping regions.
I have looked at the example Scroll View (Panel). But I am not sure what you mean?
I have a button which needs to be clickable but the UIITems overlay it (when its outside of the box). An extra collider wouldnt help this?
Thanks
-
Oh FYI, I moved the button in the example to the right of the scroll box. The same problem occurs in the example?
-
Also if I move the button infront of the UI items, the list starts flickering so I cant do that?
-
Ive fixed it by making them close together but the button slightly infront! thanks
-
After playing some more now the grid elements arent dissapearing at all...
-
http://postimage.org/image/3no116ohr/ (http://postimage.org/image/3no116ohr/)
This is whats happening now. I have a project delivery in a couple of days and these UIGrids are taking up all my time!
-
Edit-> It looks like its not clipping at all, everything outside the pink clip box is rendered. Whats going on?
-
Check your panels. Chances are you have more of them than you should. Clipping only happens for widgets that have a clipped panel on one of their parents. Only the first parent encountered is used. You can't nest clipping with multiple panels.
As for the original question, as I said look at the scroll view example. It has two large colliders covering the area left and right of the window, thus intercepting events.