Unity — Drone Controls using the New Input System

Richard Morgan
Oct 25, 2022

Ok, time to upgrade our drone controls to the New Unity Input system.

We’ll start by adding a new Drone action to our Player Input Actions. We’ll need a 2D Vector for Drone Tilt using WASD, a 1D Axis for Drone Thrust, and another 1D Axis for Drone Rotate:

Now, let’s update our DroneManager script to get a reference to our input actions, enable the input action map, and register perform functions when entering and exiting flight mode:

In Update we can consider our tilt, rotate and thrust inputs:

--

--