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
4
Question by Cheese_Gaming · Jan 08, 2015 at 01:47 PM · androiduibutton

UI Button not working on Android

So I used the new UI features to make a GUI for my app... It works when I'm using Unity Remote 4, and when I run the world PC build, but in the Android apk build thr buttons don't do what they are meant to.

Comment
Add comment · Show 6
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 Graham-Dunnett ♦♦ · Jan 08, 2015 at 01:47 PM 0
Share

$$anonymous$$aybe add more details to your question so people know more about your problem.

avatar image Cheese_Gaming · Jan 08, 2015 at 02:35 PM 0
Share

I have buttons which do what theyre meant to in the Editor and in PC build, but they dont work for Android. Im using android sdk build-tools 20... so out of date, but thats because otherwise I get some errors when I build to android.

avatar image Qasem2014 · Jan 08, 2015 at 06:22 PM 0
Share

what they do ? what is the error ?

avatar image Cheese_Gaming · Jan 09, 2015 at 12:00 AM 0
Share

No error for the buttons...

avatar image FranzBertazzo · Mar 14, 2015 at 08:12 PM 0
Share

I'm having the same issue. I Was using Unity 4.6 UI Buttons on Android just fine. After updating to Unity 5 they stopped working.

Show more comments

7 Replies

· Add your reply
  • Sort: 
avatar image
8

Answer by Xtro · Jan 08, 2015 at 06:50 PM

Make sure TouchInputModule is attached to the EventSystem object in your game.

Comment
Add comment · Show 4 · 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 Cheese_Gaming · Jan 09, 2015 at 12:16 AM 0
Share

I already have a Touch Input $$anonymous$$odule and a Standalone Input $$anonymous$$odule on my event system. On the Touch Input $$anonymous$$odule I have "Allow Activation On Standalone" checked, and on Standalone Input $$anonymous$$odule, I have "Allow Activation On $$anonymous$$obile Devices" checked.

avatar image TofuS · Mar 08, 2016 at 09:17 AM 0
Share

Hi there. Just wanted to thank you as for me, i did not have TouchInput$$anonymous$$odule attached to the EventSystem. For days i was wondering why it wasn't working!!! Again Thanks heaps lol something so simple yet had me lost for days going over my scripts etc!!

avatar image Karel_Delgado · Apr 14, 2016 at 08:06 PM 0
Share

Thanks a lot Xtro, I was stuck in this for days I never thought that could be this detail. Thanks.

avatar image SEVO · Nov 01, 2016 at 05:39 PM 0
Share

Thanks, this became an issue (for me) when downgrading from unity 5.3 to 5.2.

avatar image
2

Answer by pjezek · Jun 08, 2015 at 07:50 AM

I just had the same issue until I entered "First Selected" with my first button. Since then it worked. Previously I tried to set "Allow Activation On Mobile" for the Standalone Input Module (as I am using Joystick axis for navigation.) alt text

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
avatar image
0

Answer by coolblue2000 · May 16, 2015 at 01:24 AM

I have the same issue. My ui button reacts to a gamepad button0 press through an xbox one pad when run in the editor and also reacts to spacebar press when in the editor. However when I run it on my nexus player the ui button does not react to any button presses from the gamepad. I have set "first selected" to my button control but it just does not work at all....

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
avatar image
0

Answer by MihajloNen · Dec 05, 2015 at 04:35 PM

Hey, I had the same issues. Everything working fine on Editor Mac/Pc/Remote but no reaction, or very unpredictable ones, on the mobile android device. Solution: Update Unity to 5.2.3(Nov.2015) Now the TouchInputs work smooth and reliable BUT I now have some issues with the edge collider, but that's not as far as frustrating as the touchInput-Bug was. @coolblue2000

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
avatar image
0

Answer by zeeshan7036 · Jul 25, 2017 at 01:39 PM

I had the same issue plzz tel the answer

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 Xuexuan · Aug 05, 2017 at 08:00 PM 1
Share

Bro check your Drag Threshold under the EventSystem

 EventSystem--EventSystem (Script)--Drag Threshold

Basically, you can set the value around 500 which can make your button work in mobile device, if you want to test out than download Unity Remote 5 and modify Drag Threshold when testing :D

  • 1
  • 2
  • ›

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

17 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

Related Questions

Need UI control buttons for a 2D android side scroller 2 Answers

Material Design Menu 1 Answer

Click UI button while Android keyboard visible 0 Answers

ScrollRect not working on mobile at certain resolution 0 Answers

Button with Animation disappear in Android build 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