Author Topic: Disabled interaction on clipped objects?  (Read 4007 times)

Shelt

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 14
    • View Profile
Disabled interaction on clipped objects?
« on: May 29, 2012, 04:45:37 AM »
Hi Aren,
And as always, thanks for an amazing GUI tool!

I've working with a scene where we have a listbox full with items and a clipping area so only some of them are visible. Each listbox item is clickable.
Problem is they are still clickable even if they are clipped/invisible (outside of the clipping area). I've seen your example where you have colliders outside the clipping area to prevent this. Its a good solution, but it won't work in my case since I have lots of other clickable buttons around the clipping area, which needs to be clickable, so I can have a collider over them.

Now your thinking; why don't you have those button "over" the colliers. Well its not that simple because the clipping area is part of a popup windows that lies over those buttons in the background, so I need to have the popup in front of the buttons.

Is there any way you can make clipped UI elements to not steal the OnClick events from my other buttons? Or is there any other good solutions to my problem?

kind regards,
Shelt

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disabled interaction on clipped objects?
« Reply #1 on: May 29, 2012, 01:48:28 PM »
Unfortunately there is no ideal solution to this as the events are handled via physics raycasting into a collider, and you can't clip a collider.