Unity Object fake NULL

vvhustle's coding note·2022년 11월 22일
0

[SerializeField] 로 선언한 GameObject가 null 조건 연산자(?) 를 사용해도,
null 체크가 제대로 되지 않고 Null Reference Exception을 발생시키는 경우가 있습니다.

C#코드와 C++코드가 결함된 방식이라, "fake null" 이란 개념이 존재하는데,
아래의 링크가 잘 설명하고 있어 생략합니다.

https://overworks.github.io/unity/2019/07/16/null-of-unity-object.html

https://overworks.github.io/unity/2019/07/22/null-of-unity-object-part-2.html

0개의 댓글