Author Topic: Generated UIGrid colliders overlay button  (Read 3956 times)

m3taphysics

  • Guest
Generated UIGrid colliders overlay button
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Generated UIGrid colliders overlay button
« Reply #1 on: October 01, 2012, 05:13:07 PM »
You mean items outside the clipping area? Put a collider covering them like in the example.

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #2 on: October 02, 2012, 01:49:51 PM »
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

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #3 on: October 02, 2012, 01:50:42 PM »
Oh FYI, I moved the button in the example to the right of the scroll box. The same problem occurs in the example?

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #4 on: October 02, 2012, 01:52:00 PM »
Also if I move the button infront of the UI items, the list starts flickering so I cant do that?

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #5 on: October 02, 2012, 01:53:21 PM »
Ive fixed it by making them close together but the button slightly infront! thanks

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #6 on: October 02, 2012, 02:27:17 PM »
After playing some more now the grid elements arent dissapearing at all...

m3taphysics

  • Guest
Re: Generated UIGrid colliders overlay button
« Reply #7 on: October 02, 2012, 02:42:35 PM »
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?
« Last Edit: October 02, 2012, 02:51:05 PM by m3taphysics »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Generated UIGrid colliders overlay button
« Reply #8 on: October 02, 2012, 04:41:07 PM »
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.