Code inspection: The input name is not defined in the Input manager
This inspection reports uses of Input.GetAxis, Input.GetButton, and related APIs with a name that is not defined in the project's Input Manager settings. If the input name is missing, the call is likely to fail at runtime.
Example
In this example, the input name "HorizontalMovement" is not defined in Unity's Input Manager. The correct axis name should be "Horizontal".
using UnityEngine;
public class Example : MonoBehaviour
{
void Update()
{
// Reported: "HorizontalMovement" is not defined in Input Manager
var horizontal = Input.GetAxis("HorizontalMovement");
}
}
using UnityEngine;
public class Example : MonoBehaviour
{
void Update()
{
// "Horizontal" is a standard Unity input axis
var horizontal = Input.GetAxis("Horizontal");
}
}
Quick-fix
This inspection does not provide a dedicated quick-fix. Fix the string manually or add the missing axis/button name in Unity project settings.
26 March 2026