Author Topic: UIButton inside UIScrollView  (Read 3638 times)

Katsura

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UIButton inside UIScrollView
« on: December 28, 2013, 08:15:51 AM »
I have a UIScrollView->UIGrid->UIDragScrollView, UIDragScrollView has a box collider, so if add UIButton (with box collider ofcourse), the click event will not be passed for this button. How can I resolve it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton inside UIScrollView
« Reply #1 on: December 28, 2013, 04:37:17 PM »
Add an invisible widget that has a depth (ALT+SHIFT+W). Use this widget to mark the area you want UIDragScrollView to react on, and attach that script (and the box collider) to that widget.

Adjust the depth so that it's behind your buttons.