Fix Unity “Input.GetAxis” Error – Switch to the New Input System!

Опубликовано: 05 Апрель 2026
на канале: MrWonderHow
3,723
21

Are you getting the “InvalidOperationException: You are trying to read Input using the UnityEngine.Input class…” error? That means Unity has switched to the New Input System, and Input.GetAxis() or Input.GetKeyDown() no longer work! 😱

In this tutorial, I’ll show you how to fix the old Input.GetAxis error and properly set up the New Input System in Unity. We’ll cover:
✅ Enabling “Both” Input Systems (for compatibility)
✅ Replacing Input.GetAxis() with the new Input System API
✅ Setting up Input Actions for movement and jumping
✅ Writing clean, modern input code for Unity 6!

🚀 Watch till the end to avoid input errors and future-proof your game!

🔔 Don’t forget to LIKE & SUBSCRIBE for more Unity tips!
💡 Support my work on Patreon: patreon.com/MrWonderHow

#Unity #GameDev #InputSystem #Unity6 #UnityTips