A-Dyu의 개발 일기장

[유니티] Type has an extra field of type in the player and thus can’t be serialized error 오류 본문

유니티/유니티 오류

[유니티] Type has an extra field of type in the player and thus can’t be serialized error 오류

ADyu 2024. 7. 25. 22:52

유니티를 사용하다 완성 후 빌드할때 이 오류가 떳다.

난생 처음보는 오류에 구글에 검색해보았더니 꽤 오래전부터 있던 전통적인? 오류인것 같았다.

https://discussions.unity.com/t/type-has-an-extra-field-of-type-in-the-player-and-thus-cant-be-serialized-error/678423

여기에서 나온대로 원래 클래스 안쪽에 있던 열거형을 바깥에 빼봤더니 잘 된다.

다시 넣어도 잘 된다.

?

ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ