How to make Buttons work on mobile in Unity?

Updated on July 27, 2017 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on July 26, 2017

Hello!!

 

I am working on a 2D Platformer for mobile in unity. On the main menu screen I have two buttons. One is play and the other is quit. I am just wondering how would I make the buttons take a touch input once it is on the phone. I did switch the build to Andorid. is that all that is needed or is there something else? I am doing the project in c#.

 

Thanks!!!!!

  • Liked by
Reply
0 on July 27, 2017

That should be all you need so long as you are utilizing the OnClick() function in the Unity Editor.

  • Liked by
Reply
Cancel