본문 바로가기
Unity 게임 개발/Unity Errors

[Unity Error] UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors)

by daisy0461 2022. 8. 4.

새 프로젝트를 하던 중에 이상한 에러가 나타났다.

 

UnityEditor.PropertyEditor.DrawEditors (UnityEditor.Editor[] editors)

라는 에러이다.

 

이 에러는 Game을 Play할 때만 나타난다.

 

정확한 원인을 알아내지는 못했지만

https://answers.unity.com/questions/1828185/whenever-i-press-the-unity-editors-play-button-i-g.html

 

Whenever I press the Unity Editor's play button, I get this error: - Unity Answers

 

answers.unity.com

여기에 따르면 Inspector창이 2개 이상 켜져있으면 이런 에러가 나타난다고 한다.

계속 안그러다가 왜 갑자기 나타난건지 모르겠지만 Inspector를 하나 닫으니 에러가 사라졌다.

 

또 다른 해결법은 Window > Layouts > Default로 교체하면 에러가 사라진다.