How To Fix Unity Error: You are trying to read input using UnityEngine.Input...

preview_player
Показать описание
In this video I'll quickly show you how to fix the following error:
InvalidOperationException: You are trying to read input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

This happens sometimes when you import the new input system. You simply have to click a button on your EventSystem to change it to the new ui inputs.

If you don't have an EventSystem or the error stays, make sure you don't use the old input system in your code ( like Input.GetKeyDown )
Also someone suggested this fix: Go to Project Settings - Player - Other and then set the Input from [New] to [Old]

---

Subscribe for game making tutorials with unity and to follow my projects with the dev logs !

Рекомендации по теме
Комментарии
Автор

Honestly, I thought this is gonna be one of the low quality and time-wasting vidoes on YT, but turned out to be the most efficient and straightforward help I could get

WarlordMSM
Автор

Okay, wow. That was way less confusing than I thought. Great video. Short and to the point.

IroquoisPliskin
Автор

Short, concise, to the point, and actually fixed it!

LyrelGaming
Автор

Watched another video about how to handle it. They suggested enabling both input systems from player settings but your explanation is the correct one! Thanks!

alantan
Автор

Alright!
So if you dont have an event listener theres a diff fix:
Go to Project Settings->Player->Other and then set the Input from [New] to [Old] and if that doesnt work, to BOTH.

This worked for me. ❤🎉

mirauxd
Автор

omg thanks so much.. spent so much trying to find a fix but they were complicated/useless. thanks!

vortexvgm
Автор

Thank you so much i thought my game that i have been working on for more than half a year is corrupt you saved my life 🙏

randomguy
Автор

THX SOOOO MUCHHH BROOO. i like you very very!))

frale
Автор

Thanks, a lot. If I didn't see this ill would probably get soo mad and smash my keyboard, saying: WHY THIS ERROR WONT LET ME MAKE MY JOYSTICK?!?!?

FlyRetroGamer
Автор

oh wow i couldnt even click a single button without googling

kristijanoros
Автор

You know those little "watch next" panels that overlay on YouTube video towards the end of the video, on your video @20second one of those overlays appear in the top left quarter of the video - fully obscuring the tip you're trying to show!

jakemacleay
Автор

It still does that when clicking inside a text input field

MaxLohMusic
Автор

I still get this goddamn error everything goes wrong for me if it can in Unity

Zemtor
Автор

I never ever seen event system in my life, i never used any package, but yet i still get this. i checked for the package and it wasn't installed so idk what is going on.

thatguyiscool
Автор

it is showing me the error even tho i uninstalled it

proxyways
Автор

What event system. There is none in my project!

paulkruger
welcome to shbcf.ru