GetAxis help?

So I don’t know which this would of been under :
Forums or Answers

But I am more familiar with how Answers work in regards to selecting the best, and forums I don’t know where I would put this

So I don’t fully understand GetAxis, is it just the settings like the Sensitivity and all that?

Or is it like something like I put it in a code like :

        if (Input.GetAxis("Horizontal"))
        {
            //code here
        }

*I do have a mild form of autism sorry If I sound dumb.

GetAxis() returns a value based on the settings for that axis in the InputManager. Most common use for this is for things like “Horizontal” and “Vertical” to obtain movement input from arrow/wasd keys or joysticks.

It will return a floating point number in the range -1 to 1 indicating the type of input. For example, if you took this script and attached it to an object, pressing the arrow keys or wasd keys will cause the object to move around.

using UnityEngine;

public class Test : MonoBehaviour
{
    [SerializeField]
    private float m_Speed;

    void Update()
    {
        Vector3 lMove = Vector3.zero;
        lMove.x = Input.GetAxis("Horizontal");
        lMove.y = Input.GetAxis("Vertical");

        transform.Translate(lMove * Time.deltaTime * m_Speed);
    }
}