Skip to content
KnowledgeCity

Unity Intermediate: Using Input

Control the player using default and new input system
Preview the first lesson free — get full access to all 4 lessons.
Course: On-Demand
Intermediate Provider Ken Geary  4 Lessons ·  26m  in Arabic, German, English, Spanish, French, Portuguese, Chinese 

Course Description

In these lessons, you’ll learn about the default Unity inputs as well as the new input system to control the player character. The default Unity input system works with keyboard keys mapped to the WSAD keys as well as the arrow and spacebar keys, and you’ll create the code for the player to move forward and back. You’ll import the new input system and set up components to create custom actions for moving left and right using the new input system action settings. You’ll then create a new action and map it to the spacebar for more player movement. You’ll modify the player code to add the input system library, as well as commands to call out the new input system. This maps the A and D keys and the left and right arrows to make the player move left and right, as well as the spacebar to make the player jump.

What You'll Learn

  • Create code to control basic player movement using the default Unity input system
  • Map keyboard keys (WSAD, arrows, and spacebar) to move the player forward and back
  • Install and import the new Unity input system
  • Set up custom action components to move the player left and right
  • Create a new action and map it to the spacebar to make the player jump
  • Modify the player code to add the input system library and call the new input system

Key Takeaways

  • The default Unity input system works with keyboard keys mapped to the WSAD keys as well as the arrow and spacebar keys.
  • You create the code for the player to move forward and back using the default inputs.
  • The new input system is imported and set up with components to create custom actions for moving left and right.
  • A new action is created and mapped to the spacebar for more player movement.
  • Modifying the player code maps the A and D keys and the left and right arrows for left/right movement, and the spacebar for jumping.

Frequently Asked Questions

What will I learn in this course?

You'll learn about the default Unity inputs as well as the new input system to control the player character, including creating code for player movement, installing the new input system, working with custom action components, and using the new input system to control the player.

Which keys are used to control the player?

The default Unity input system works with keyboard keys mapped to the WSAD keys as well as the arrow and spacebar keys. With the new input system, the A and D keys and the left and right arrows make the player move left and right, and the spacebar makes the player jump.

What lessons does this course include?

The course includes four lessons: Controlling the Player Using Default Inputs; Installing the New Input System; Controlling the Player Using the New Input System (Part 1); and Controlling the Player Using the New Input System (Part 2).

What is the difference between the default inputs and the new input system covered here?

The default Unity input system uses keyboard keys mapped to WSAD, arrow, and spacebar keys for forward and back movement, while the new input system is imported and set up with custom action components to map left/right movement and a spacebar jump action.

What skills does this course build?

This course builds skills in Input Devices, Interactive Learning, Interactive Mode, Raw Input, and the Universal Input Method (UIM).