somthing i cant seem to fix

ok so i keep having this thing where it says
ArgumentException: Input Axis horizontal is not setup.
To change the input settings use: Edit → Settings → Input and i cant seem to fix it any help?

here is the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Lastfreakingscript : MonoBehaviour
{
    public CharacterController controller;
    public float speed = 6f;




    // Update is called once per frame
    void Update()
    {
        float horizontal = Input.GetAxisRaw("horizontal");
        float vertical = Input.GetAxisRaw("vertical");
        Vector3 direction = new Vector3(horizontal, 0f, vertical);

        if (direction.magnitude >= 0.1f) ;
            controller.Move(direction * speed * Time.deltaTime);
    }
}

Try spelling the same as defaults, “Horizontal” not “horizontal” ? I don’t know for sure it’s case sensitive, worth a shot though.

1 Like

that worked… i spend WAY to long trying to fix that tysm

1 Like