Welcome,
Guest
. Please
login
or
register
.
June 10, 2026, 09:33:53 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIScrollView With UIButtons
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIScrollView With UIButtons (Read 3597 times)
Brad
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 3
UIScrollView With UIButtons
«
on:
January 13, 2015, 07:03:54 PM »
I am trying to setup a UIScrollView with clickable buttons that when dragged are also able to scroll the view. I viewed the UIScrollView video located here
https://www.youtube.com/watch?v=UK3aMHRfgcw
. So I initially added the UIDragScrollView script to each of the buttons and this seemed to work great, except when the game was ran on an iOS and Android device. When in the editor the buttons can be clicked and when dragged the scroll view will scroll like expected, but when on an iOS or Android device a click is not registered and will only drag work.
Is there some sort of alternate way of setting this sort of functionality up so that it will also work on ios and android? Is there something additional that needs to be done in order for this to work on ios and android?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIScrollView With UIButtons
«
Reply #1 on:
January 14, 2015, 08:45:30 PM »
Turn off mouse events on the UICamera, leaving only touch events.
Logged
Brad
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 3
Re: UIScrollView With UIButtons
«
Reply #2 on:
January 15, 2015, 03:01:29 PM »
Does this mean that for devices that will use a mouse such as webplayer, the events will not be captured?
I did notice that after unticking the Mouse from Event Sources on the UICamera it does still seem to respond to mouse input within the Editor.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UIScrollView With UIButtons
«
Reply #3 on:
January 15, 2015, 08:59:15 PM »
Mouse emulates touch events as necessary. I'm just going to re-add the code that forcefully disables mouse events on Android devices in the tomorrow's update. Too many people seem to run into this particular issue.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIScrollView With UIButtons