- Home /
 
 
               Question by 
               raul_201 · Apr 06, 2019 at 12:54 PM · 
                inputinput.getaxisgetaxis  
              
 
              How do I get a value from Input.GetAxis() ?
I am unable to detect any input from Input.GetAxis("Horizontal") and Input.GetAxis("Vertical")... Any help please?
using UnityEngine;
 void Update()
 {
     float _xMov = Input.GetAxis("Horizontal");  
     float _yMov = Input.GetAxis("Vertical");
     Debug.Log(_xMov);
     Debug.Log(_yMov);
 
               }
               Comment
              
 
               
              I've tested your code. It's working. Have you changed something in the settings?
Thanks so much! In the input settings I had changed 'Horizontal' to 'horizontal'.
Answer by hameed-ullah-jan · Apr 06, 2019 at 03:28 PM
check the name "Horizontal" & "Vertical", inside Input settings. Are they present in your input settings or not?
Your answer
 
             Follow this Question
Related Questions
Input.GetAxis with MouseMovement 0 Answers
Input Snap option not returning 0? 0 Answers
Double tap mechanics and axis inputs 3 Answers