Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
This question was closed Feb 20, 2018 at 11:31 AM by meat5000 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by LunaTrap · Nov 18, 2015 at 08:49 AM · android2duibutton

Is it possible to take input from 2 UI buttons?

Hi, sorry for the noob question, im doing a 2D prototype for an android game, but im very newbie and i have a problem with this

i have 2 buttons 1 on the left upper corner of the screen, and one on the right upper corner, this is to rotate the player clockwise and counter-clockwise, and i want that when the player presses the 2 buttons at the same time, it will do a dash forward

but i dont seem to be able to find a way to do this, when i press the 2 buttons at the same time, they stop interacting.

is pressing 2 buttons at the same time possible?

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

  • Sort: 
avatar image
0
Best Answer

Answer by LunaTrap · Nov 19, 2015 at 06:26 PM

no, it was not about code, after looking for an anwers, and being told by mod to stop doing noob question, i found that, on unity remote, the multi touch does not works

thats was my problem, that the ui buttons did not wanted to get press at the same time, but after doing a build to my phone, now the multi touch works, thanks a lot for you time killerstreak

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 araz01 · Mar 22, 2020 at 04:46 PM 0
Share

its still same on build brA

avatar image
0

Answer by killerstreak · Nov 19, 2015 at 12:17 PM

It would be nice if you posted some code at all, so we can actually see whats wrong. I have no idea how you are trying to accomplish this.

Maybe you should follow some tutorials before you ask questions, anyway. This isnt really something that you should be asking here, newby or not, it feels like you are lazy, and making us solve your problems.

I'll tell you what you would want to do tho: just use if statements, that check whether you press the buttons,

this is not actual code tho, its just illustrating the idea.

 //something like
 if(//code that checks button press left and button right isnt pressed)
 {
 rotate lef
 }
 else if (//code that checks button press right and button left isnt pressed)
 {
 rotate right
 }
 else if (//code that checks if both buttons are pressed)
 {
 dash
 }
 
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 thunderbuns · Dec 10, 2018 at 04:12 AM 0
Share

I must disagree, it is not wrong for someone to ask a basic question on Unity Forums. Searching through online tutorials for a specific answer can be tedious at best and having the ability to ask a focused and direct question is invaluable.

Follow this Question

Answers Answers and Comments

61 People are following this question.

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

Related Questions

Unity UI - Button Slow On Some Devices? 0 Answers

How to move character with UI buttons? 0 Answers

Someone please help me with combination lock 0 Answers

Use Android default sound effect on a button 0 Answers

[Need help] How to higlight button color when passing the mouse after a click? 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