• 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
Question by headkitgames · Nov 22, 2011 at 12:38 PM · iostouchareathumb

iOS :: increase slider thumb touch area

hi there!

how could I increase the touch area of a scroller thumb on iOS devices, esp. for iPhone 4. the touch area here is a really tiny one...

thnx!

Comment
youblistermypaint

People who like this

1 Show 0
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

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Gamieon · Jan 25, 2012 at 03:16 AM

I just came across the same issue, and I did a couple things which got it working:

  1. Make a new PNG bitmap for the horizontal slider...but have it mostly be empty space. For example, I made a 512x512 bitmap that has an 84 px thick line in the center, and the rest is just unused space (not black pixels). You can use The Gimp or Photoshop to get the job done.

  2. Make a new bitmap for the horizontal slider thumb. I just rendered a circle in my case. Unlike the bitmap in step 1, you don't need to make the image size much bigger than the visible shape.

  3. In Unity, make a new skin, and assign the bitmap from step 1 to Horizontal Slider -> Normal -> Background. Then assign the bitmap from step 2 to Horizontal Slider Thumb -> Normal -> Background.

  4. Play with the padding, margin, and overflow of both the slider and the thumb until they look good. The nice thing is you can do that while the simulation is running by using the mouse as your "test touch device". If you can move the slider thumb while clicking well above and below the visible horizontal slider, then you're golden.

I'm open to a better solution if anyone has any, though!

Comment
youblistermypaint

People who like this

1 Show 0 · 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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

iOS: how do I make an empty area a tappable target: Ring 2 Answers

SmoothDamp touch look iOS Android 1 Answer

Touch on 3D model and Fade-out 0 Answers

Touch Controls for a 2D ball game 0 Answers

Touch and release type of controll in Unity (Android). How to make it? 0 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