본문 바로가기
Tips/Unity

[Unity] 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. 해결하기

by DevJaewoo 2025. 9. 6.
반응형

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. 해결하기

Space 키 인식을 위해 Input.GetKeyDown 함수를 사용했더니 아래와 같은 에러가 발생했다.

 

1. [Edit] - [Project Settings] 클릭

 

2. [Player] - [Other Settings] 옵션 확장

 

3. [Configurations] - [Active Input Handling] 확인

이 설정이 Input System Package (New)로 되어있을텐데, Input Manager (Old) 또는 Both로 변경하면 된다.

반응형