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);
}