Unity Input Manager Tutorial Mastering Game Controls Efficiently

Robert Jul 13, 2026

The Unity Input Manager is a powerful tool for handling user input in Unity games. It allows you to control objects directly in the editor, making it a cornerstone of Unity's user-friendly design. Let's delve into a comprehensive tutorial on how to use it to enhance your Unity gaming experience.

How To Build a Custom Input Manager in Unity C#
How To Build a Custom Input Manager in Unity C#

Before we dive in, ensure you have a basic understanding of Unity's interface and have created a simple Unity project. If you're new to Unity, consider checking out their official tutorials for better footing.

New Unity Input System: Getting Started
New Unity Input System: Getting Started

Understanding the Input Manager

The Input Manager in Unity is a built-in system for handling input sources like mouse, keyboard, gamepad, and more. It maps input actions to control schemes, allowing your game to respond to player input in a meaningful way.

Unity's New Input System - A Beginners Guide
Unity's New Input System - A Beginners Guide

Understanding how to manage inputs is essential for creating responsive and dynamic games, as it enables you to control game objects, handle user interactions, and implement game mechanics based on player input.

Setting Up Actions

an image of a computer screen with the words, new in it's system
an image of a computer screen with the words, new in it's system

Actions are the building blocks of the Input Manager. They represent specific player inputs, such as 'Jump', 'Attack', or 'Pause'. To create an action:

  1. Navigate to Edit in the Unity menu, and select Project Settings.
  2. From the Inspector panel, select Input Manager.
  3. Click the + icon next to Actions and enter your action name.
  4. Set up a positive and negative button to trigger this action. For example, for a 'Jump' action, set the positive button to Spacebar and the negative button to none.

Structuring your actions thoughtfully helps streamline your game's input logic.

How to make a menu in Unity - UI Tutorial
How to make a menu in Unity - UI Tutorial

Using Actions in Code

Once you've set up your actions, you can use them in your C# scripts. Here's how to check if an action is being activated:

if (Input.GetButtonDown("Jump")) {
    // Player jumped, do something...
}

Input.GetButtonDown returns a boolean indicating whether the specified action's positive button was pressed this frame. You can use this to manage your game's logic and response to player input.

How to create Shake Trigger Managing Android Mobile Acceleration Input in Unity game? Easy tutorial.
How to create Shake Trigger Managing Android Mobile Acceleration Input in Unity game? Easy tutorial.

Customizing Input Axes

Sometimes, you need input axes like analog stick movements or mouse cursor positions. The Input Manager can handle these too, providing a convenient way to read input axis values.

Unity Programming Tricks
Unity Programming Tricks
game making
game making
TOP 10 UNITY TIPS - 2017
TOP 10 UNITY TIPS - 2017
Creating a Custom Tab System in Unity
Creating a Custom Tab System in Unity
Unity Touchscreen Tutorial: Slider
Unity Touchscreen Tutorial: Slider
How to use NEW input system in Unity 2020 P1 Initial setup
How to use NEW input system in Unity 2020 P1 Initial setup
Unity 3d Tutorial Advanced Character Controller Template [Outdated]
Unity 3d Tutorial Advanced Character Controller Template [Outdated]
How to Download and Install Unity in 2025: Beginner’s Complete Guide
How to Download and Install Unity in 2025: Beginner’s Complete Guide
C# Scripting Guide For Unity Beginners
C# Scripting Guide For Unity Beginners
Unity 4.6 UI Tutorial - Animated Main Menu
Unity 4.6 UI Tutorial - Animated Main Menu
Guide to MonoBehaviour in Unity
Guide to MonoBehaviour in Unity
How to animate a character with Mixamo for Unity - (Tutorial)  by #SyntyStudios
How to animate a character with Mixamo for Unity - (Tutorial) by #SyntyStudios
Unity 5 Tutorial Adding Controller / Joystick Support
Unity 5 Tutorial Adding Controller / Joystick Support
Unique Markers & Pings Vol. 1, Gabriel Aguiar
Unique Markers & Pings Vol. 1, Gabriel Aguiar
Unity ScriptableObjects Explained | Fix Messy Code & Build Better Games
Unity ScriptableObjects Explained | Fix Messy Code & Build Better Games
Top 5 Unity tips for Beginners
Top 5 Unity tips for Beginners
Making A Character Controller, Part 1: Basic Controller
Making A Character Controller, Part 1: Basic Controller
How to make Fruit Slicing in Unity (Livestream)
How to make Fruit Slicing in Unity (Livestream)
Unity Asset Store
Unity Asset Store
How to Manage Different Versions of Unity Using Unity Hub
How to Manage Different Versions of Unity Using Unity Hub

To create an input axis, follow the same steps as creating an action, but select Axis instead of Action. Give your axis a name, set its positive and negative axis, and click OK.

Axes in Code

To read axes in your code, use Input.GetAxis. It returns a float value representing the current state of the axis.

float move = Input.GetAxis("Horizontal"); // Gets the 'Horizontal' axis value, usually bound to the left and right arrows or mouse horizontal movement

Positive values indicate right or up, while negative values indicate left or down. Don't forget to check Unity's input axes documentation for user-defined axes or axis pairs.

Curving Axis Values

To smooth out axis input values, use the Mathf.Curve function. It maps the input axis value to a curve, letting you control the input's sensitivity and smoothness.

With these concepts in mind, you're well equipped to manage and manipulate inputs in your Unity projects. Keep practicing and exploring Unity's documentation to unlock the full potential of the Input Manager.

Remember, the key to mastering Unity is continuous learning and experimentation. So, dive in, build something incredible, and happy coding!