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 Colin Allen · Aug 09, 2010 at 03:08 PM · iphonetouchtapunityiphone

Taping in UnityIphone. URGENT!

hi, i need help! im making a simple game were when you tap a object it does somthing. i just need a simple tap script. or tap count. i need somthing that says like:

if (tapping){Audio.Play}

somthing like that just a plain old tap script.

Pls help! pls pls pls pls pls!

Thanks guys! your the best!

Comment
Add comment · Show 1
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 Ares · Aug 09, 2010 at 05:15 PM 0
Share

Please add the code you are having problems with and we'll see if we can fix it. P.S. if you want someone to write the code for you, you really should ask that in the forums (http://forum.unity3d.com/index.php).

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by NetFox · Aug 09, 2010 at 04:30 PM

I don't have the exact answer for your but I hope this helps. I'm not sure what you plan to write this in, but you could use the EventType.MouseDown and then use something like if game object is equal to something play sound. If you are not sure how to use these classes look at the scripting reference page: http://unity3d.com/support/documentation/ScriptReference/index.html

Comment
Add comment · Show 1 · 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 BinaryCaveman · Aug 09, 2010 at 06:02 PM 0
Share

I don't know if the $$anonymous$$ouseDown event would work on an iPhone...

avatar image
0

Answer by Billamu · Aug 09, 2010 at 11:27 PM

These links might give you a clue.

http://answers.unity3d.com/questions/12923/flick-determines-velocity

http://unity3d.com/support/documentation/ScriptReference/AudioSource.PlayOneShot.html

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

No one has followed this question yet.

Related Questions

Analogue OnMouseUp for iOS(Unity iPhone) 0 Answers

Touches don't respond correct 2 Answers

Detecting Click/Touch in Unity iPhone (SpriteManager) 1 Answer

Does UNity iPHOne work 1.7 work with the new iPhone 4 os? 1 Answer

touch game objects on ios 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