You may have used Unity’s new input system, but you could probably be using it better. I’ll show you how to create your own input map abstraction which will make writing control scripts way easier.
Unity Open Project: https://github.com/UnityTechnologies/open-project-1
Input System Documentation (CallbackContext): https://docs.unity3d.com/Packages/com.unity.inputsystem@1.5/api/UnityEngine.InputSystem.InputAction.CallbackContext.html
TIMESTAMPS
0:00 – Intro
0:48 – Input System Visualization
3:30 – Input Mapping
8:36 – Auto-Generated Input Map Script
10:13 – Input Reader Implementation
19:11 – Controllers
22:13 – Final Setup
Voir sur youtube