Skip to content

gamedev-resources/listen-for-Input-System-events-via-CSharp

Repository files navigation

View the entire tutorial on What Up Games.

Listen for the Input System's Action events via C#

This tutorial was created with Unity version 2019.2.

In certain scenarios it may be beneficial to listen for Input System Action callbacks via C#, rather than using the built in Player Input component. This tutorial will walk through writing an InputManager script to listen for and route such events.

Prerequisites

This is a continuation of the How to make a configurable camera with the new Input System tutorial series, which covers fundamental knowledge of the Input System. While not recommended, (unless you are already familiar with the Input System) you can skip tutorial by cloning the starterProject in this section of the repository.

Learning Outcomes

  1. Understand the different Input System Action callbacks and how to hook them up via C#

Resources

  1. Comments, concerns and/or questions can be posted here.
  2. Part 1 Tutorial: How to make a configurable camera with the new Input System
  3. Input System documentation and GitHub repository.
  4. Introducing the new Input System - Unite Copenhagen Video
  5. This project uses the Low Poly: Free Pack by AxeyWorks.

About

Learn how to listen for Input System Action callbacks via C#

Resources

License

Stars

Watchers

Forks

Languages