본문 바로가기

Unity29

[Unity] UnityEngine.Object의 null 체크 https://gist.github.com/20chan/d8def3eb18ae98235decc722ed931ad1 유니티 직렬화 방식과 null 사용의 개같음과 버그 유니티 직렬화 방식과 null 사용의 개같음과 버그. GitHub Gist: instantly share code, notes, and snippets. gist.github.com 매운 맛 자료 https://ansohxxn.github.io/unitydocs/fakenull/ Unity C# > 유니티 오브젝트의 fake null 🚀 Destroy ansohxxn.github.io 순한 맛 자료 컴포넌트 하위 클래스의 변수를 public으로 하거나, SerializeField 속성을 부여하면, 인스펙터에 노출되는데, 이 때 해당 변수 초.. 2022. 6. 1.
[Unity] ExecuteInEditMode https://docs.unity3d.com/kr/530/ScriptReference/ExecuteInEditMode.html Unity - 스크립팅 API: ExecuteInEditMode 기본 설정으로, 스크립트 컴포넌트는 플레이 모드에서만 동작하도록 설정되어 있습니다. 이 어트리뷰트(attribute)를 추가 하면, 각 스크립트 컴포넌트들 역시 플레이모드가 아닌 에디터 모드에서 docs.unity3d.com 스크립트 컴포넌트의 유니티 콜백이 에디터 모드에서도 적용되도록 하는 속성이란다. Application.IsPlaying이랑 같이 툴 만들 때 쓸 듯. 문서엔 Update, OnGUI, OnRender 속성만 언급돼있는데, Awake, Start, OnDestroy 등도 씬끼리나, 플레이 모드를 .. 2022. 3. 8.
[Unity] 유니티 Tip 모음 2022. 2. 19.
[Unity] FormerlySerializedAs https://docs.unity.cn/ScriptReference/Serialization.FormerlySerializedAsAttribute.html Unity - Scripting API: FormerlySerializedAsAttribute Success! Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable. Close docs.unity.cn ㅈㄱㄴ 에디터 상에서 Serialize 해놓은 값들을.. 2022. 2. 14.