- Home /
Duplicate Question
How to move an object with a key input?
I'm New to Unity, and would like to know a simple script that will move the object forward and back with key input.
Sounds like visiting the Learn section of the website would be a good idea. Also, the script reference docs have loads of code. Perhaps look at:
http://docs.unity3d.com/Documentation/ScriptReference/Input.GetAxis.html
In addition to @Graham Dunnet's suggestion, Google "unity3d move object with keys" for many hits.
Follow this Question
Related Questions
How to rotate and move gameobject at same time on key press 1 Answer
Unity2D move + turn with a fixed angle 1 Answer
2/3 times pressing a button does nothing. 1 Answer
Detect the return key whilst using a text field 0 Answers
How to prevent PositionHandle to become FreeMoveHandle when shift key is pressed 0 Answers