본문 바로가기
728x90

console2

[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. 해결 방법 유니티 스크롤을 페이지 단위로 처리하는 것을 YouTube 영상을 보면서 만들고 실행을 시켜봤는데 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. 이런 에러가 발생했다. 에러를 찾아본 끝에 해결책을 찾았다. 1. File > Build Settings 클릭 2. Player Settings... 클릭 3. Player > Other Settings에서 밑으로 내려보면 4. Active Input Handling* 이 I.. 2023. 2. 3.
[C#, Unity] NullReferenceException: Object reference not set to an instance of an object 해결 방법 실습 도중 이런 에러가 발생했다. NullReferenceException: Object reference not set to an instance of an object 👉 NullReferenceException: 개체 참조가 개체의 인스턴스로 설정되지 않았습니다. null의 값을 가질 수 없는 object에 null을 할당했기 때문에 발생한다. 💡 방법 1 : 내가 해결한 방법 이런 식으로 오브젝트를 할당을 해주지 않아서 None 값으로 표시될수도 있고 MissingData처럼 스크립트에서 오브젝트 이름을 바꾸면 초기화가 될 수도 있으니 해당 오브젝트를 다시 할당해주어야 한다. 💡 방법 2 : 인터넷에서 찾아 본.. 2022. 12. 2.
728x90