Welcome,
Guest
. Please
login
or
register
.
May 02, 2026, 01:22:45 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton inside UIScrollView
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIButton inside UIScrollView (Read 3637 times)
Katsura
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 1
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?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton inside UIScrollView