- Home /
Moving gameobject by GUI buttons
I'm trying to make a tutorial pong for Android. I want to control two pads using buttons situated in the corners of the screen. Game is designed for two players. I don't know how can I make the buttons able to move the pads up and down.
Can you help me? :)
Answer by Graham-Dunnett · Feb 06, 2015 at 05:45 PM
Documentation no good?
Well, I don't understand it well, these examples don't give me a clue. What is the simplest way to do it? How the script should look like?
@greg0022 you can do a lot worse than go through a couple of tutorials on the Learn button above or the vast array of them on YouTube.
The problem is that's quit a generalized question. The good news is the new UI uses both mouse pointer and touch in the same way, get it working on your computer and it'll work on touch devices.
So I've listed that YouTube search, have a look at few first, then come back when you have a more specific issue.
Hey and, welcome to Unity.
Your answer
![](https://koobas.hobune.stream/wayback/20220613182648im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Disable Camera Movement,Stop camera movement 0 Answers
2D get touch input 1 Answer
Check object for motion 1 Answer
Move object to several locations 2 Answers
Move an object to mousePosition 2 Answers