Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have made a dragging sphere which drags, problem is how can I drag it using keyboard keys , I dont want to build it again on iphone simulator after experimenting with my code. for dragging it is not accepting mouse or any keyboard keys. Is it possible ?

share|improve this question
If you want someone to answer this, then at the very least you're going to need to provide some of your source code. The normal way to get movement input in Unity is with Input.GetAxis, but without seeing your code I don't know what you are doing or how to improve it. – SimonW Oct 5 '11 at 12:24
Please provide some code! – XandruCea Sep 3 '15 at 14:51
up vote 7 down vote accepted

Well I did a quick search on unity forum and I found a great example Unity Drag an Object without seeing your code though, I am not 100% sure what you want.

share|improve this answer
Thanks for sharing the link! Nice code snippet! – XandruCea Sep 3 '15 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.