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
1
Question by DanMarionette · May 23, 2010 at 09:46 PM · iphonetouchmultitouchfingerid

iPhone Multitouch Problem

Hello,

I'm having a problem with multitouch. I have a slider on the left and right of the iphone screen in landscape. Using touch I've got both sliding up and down via touch and both respond at the speed I require when moved on their own. The problem starts when I try and move both and the same time. I have disabled one of the handles to test just the other on its own. Moving it with one finger is perfect but as soon as i touch anywhere on screen with a second finger the movement stops working. I wondered if the solution could be found using fingerIds but I'm having trouble understanding them. Any help would be appreciated.

Thanks

Comment
Add comment · Show 2
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 spinaljack · May 23, 2010 at 10:13 PM 0
Share

You can pull the code from the example set up with the 2 screen joysticks that's included when you import the iphone standard package

avatar image equalsequals · May 23, 2010 at 10:39 PM 0
Share

Could you perhaps post your code? I've done a few touch-interfaces using Unity with gestures that I could help debug this for you.

1 Reply

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

Answer by equalsequals · May 23, 2010 at 10:47 PM

What my team and I did when developing a control interface for one of our iPhone games was divide the screen into different regions using Rect.

In our Update loop where we did all of our touch tracking we began with checking if the touch object in question was contained within the Rect and if so handle it appropriately.

We found that this method allowed us to have multiple gestures going on simultaneously with a minimal amount of extra conditional statements everywhere to sort things out.

Hope that helps.

==

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 DanMarionette · May 24, 2010 at 06:33 PM 0
Share

Thanks for your input guys. Equalsequals, that worked perfectly. Simply wrapped my existing code with an if statement checked if the touch occurred in a particular region and all is working great now. If you'd like to see the code still then let me know. Thanks

avatar image equalsequals · May 24, 2010 at 06:44 PM 0
Share

Glad I could help out! Posting code could help others who are having similar problems, just make sure that you mark your question as "[Solved]" when you do. Cheers! ==

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

No one has followed this question yet.

Related Questions

Multiple touch iPhone Buttons 0 Answers

input.touch effect ever object script is attached to 1 Answer

¿Unity messing up fingerIDs? [Android] 1 Answer

multiTouch problem when fingers close together (Bug?) 1 Answer

Need Clarification on some Touch Struct Variables 1 Answer


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