Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Riposte · Nov 13, 2014 at 09:30 PM · guibuttontouchscroll

Buttons less responsive inside scroll rect with touch controls (UGUI)

I've got a problem when using buttons inside a scroll rect. When running in the editor using a mouse, it all works fine, but when I make an Android build, the buttons are less responsive; basically you you have to use short, sharp taps in order to register the button click.

What seems to be happening is the scroll event is kicking in and this is blocking the button. I've worked with other engines/technologies before and you usually see a dead zone or dead time type setting - where basically the drag/scroll event doesn't register until you exceed the dead limits, but I can't find anything for it in the new UGUI stuff.

It's bad enough that if I can't find a fix I'll have to go with a different solution such as paging. I don't want to use scrollbars because screen space is limited.

Any thoughts/ideas greatly appreciated.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by RakshithAnand · Nov 13, 2014 at 09:46 PM

This was a problem until beta 20. The OnDrag was being registered even for 1 pixel movement on a scroll rect which was causing the button to be not pressed on touch devices where you mostly move more than 1 or 2 pixels when you touch.

But from beta 20, they introduced the DragThreshold parameter which will drag after the given threshold(you can give how many ever pixels you want) which will register button clicks easily.

So update it to beta 21 and check once it should be fine. They have given DefaultDragThreshold as 5.

In Beta 20, this paramter is present on every scroll rect component And in Beta 21, this parameter is a global paramter present in the EventSystem

And dont update to RC1 yet, many are reporting various issues. Beta 21 seems to be stable mostly. Im using it from quite sometime and it seems to be stable

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Riposte · Nov 13, 2014 at 10:26 PM 0
Share

Ahh, I'm on beta 17 still. Thanks for the info - I'll update, build and then mark as answered if works. $$anonymous$$uch appreciated!

avatar image RakshithAnand · Nov 14, 2014 at 06:05 AM 0
Share

you are welcome. :) Even i faced this issue and was glad when they introduced that parameter!

avatar image
0

Answer by waqaswaqas · Jul 19, 2016 at 04:02 PM

Decrease scroll sensitivity play with values. I mostly use 0.1 to overcome this problem.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

The Button in the middle activates if i press two side of the button. 0 Answers

Problem with multi-touch on android game 1 Answer

Touch GUI texture to toogle animation 0 Answers

pan camera by touch / gui button 0 Answers

iPhone Touch Screen? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges