Input Axis MouseX Input Not Set Up

This is my first day of coding. I like it, but it’s difficult >.< So I am following this tutorial on youtube and I did the exact same code as him, blah blah blah, and it worked perfectly. But then Unity crashed and the script did not save. So I redid the whole script exactly the same way, but NOW I’m getting the error “Input Axis MouseX Input Not Set Up”. Here is the code. I am desperate for help. AND ALSO I went to Edit>Project Settings>Input and it seemed set up just fine and everything that was supposed to be filled in was filled in. Thanks!

var lookSensitivity : float = 5;
var yRotation : float;
var xRotation : float;
var currentYRotation : float;
var currentXRotation : float;
var yRotationV : float;
var xRotationV : float;
var lookSmoothDamp : float = 0.1;

function Update () {

yRotation += Input.GetAxis ("MouseX") * lookSmoothDamp;
xRotation -= Input.GetAxis ("MouseY") * lookSmoothDamp;

currentXRotation = Mathf.SmoothDamp(currentXRotation, xRotation, xRotationV, lookSmoothDamp);
currentYRotation = Mathf.SmoothDamp(currentYRotation, yRotation, yRotationV, lookSmoothDamp);

transform.rotation = Quaternion.Euler(currentXRotation, currentYRotation, 0);

}

Try “Mouse X”, with a space - I think that’s the default name. You can look at the defined input axes by going to Edit/Project Settings/Input, and while you’re there you can edit them however you want.

This worked! Thanks! But now I get the same message but with the Y Axis Input, even though it completely works. This is kind of annoying, is there any way to get rid of it? I am trying to be the most organized possible here.

Yes, you should definitely fix the error, not just ignore it. If it’s giving you an error then something is not working. Make sure the axis names in the code match the names of the inputs in the input settings, and the errors will go away.