Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Input.GetAxis always return 0

$
0
0
I have the following piece of code that am running on my Mac Pro with trail version of Unity 4. I am quite new to unity and game programming and maybe am missing something very obvious so any help is greatly appreciated. function Update () { Debug.Log("X=" + Input.GetAxis("Horizontal") + " Y=" + Input.GetAxis("Vertical")); } Both horizontal and vertical axis always return zero. Below, I have an image of my input manager. Thanks! ![alt text][1] [1]: /storage/temp/9016-screenshot_3_17_13_1_39_am-3.png

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>