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 Renegadeandy · Mar 11, 2012 at 03:27 AM · androideditorgametouchemulator

Is there a way to emulate a touch in the Game view of the editor

I am developing a game which uses touch , yet when I go to the editor the mouse click doesnt emulate a touch at all.

This means I have to deploy to the phone which takes time, and spoils some of the benefits of using Unity. What is the best way of enabling this feature so clicking is equal to a touch.

I have read you can do Input.GetMouseButtonDown(0) and buttonUp - but that doesnt work great when you are looking for a "TOUCH" event - any help?

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 kalvinlyle · Mar 11, 2012 at 04:41 AM 0
Share

What do you mean "emulate a touch" many games use the Get$$anonymous$$ouseButtonDown(0) for touch events in iOS and Android, how does that not give you what you need?

1 Reply

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

Answer by henry96 · Mar 11, 2012 at 04:18 AM

You don't have to build it to your device to test it. Simply connect Your device to your pc. Set up some setting to test on your device. Download Android SDK on your pc and download Unity remote on your device. Open unity remote and Hit play in the Unity editor then you will see the game running for testing on your device.

Comment
Add comment · Show 3 · 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 Kleptomaniac · Mar 11, 2012 at 04:22 AM 0
Share

He is using Android. :P

avatar image kalvinlyle · Mar 11, 2012 at 04:42 AM 0
Share

You mean using the Unity Remote app from the device... doing wat you describe does not actually work at all unless you have the Unity Remote app running on your device...

avatar image fabi090806 · Jan 31, 2020 at 02:30 PM 0
Share

Doesn't work, because a single click is processed like having a mouse attatched to a mobile. :/

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

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Android Game Problem 2 Answers

Configuring android virtual device for Unity 1 Answer

testing touch function on pc instead of on phone 5 Answers

Standard Assets disappears in somes Android Phones 0 Answers

Mobile Graphics Settings in Menu 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