2023/05/10 4

[Unity/UnityEditor] UnityEditor.Selection

하이어라키 창에서 오브젝트 선택 관련해서 해당 api를 사용해서 판단할 수 있다.Selection.acitveGameObject참고https://docs.unity3d.com/2022.3/Documentation/ScriptReference/Selection.html Unity - Scripting API: SelectionSuccess! 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. Closedo..

Unity/UnityEditor 2023.05.10

[Unity/UnityEditor] DestroyImmediate 에디터 모드 시 오브젝트 제거

에디터 모드에서는 DestroyImmediate를 사용해야 함참고https://docs.unity3d.com/ScriptReference/Object.DestroyImmediate.html Unity - Scripting API: Object.DestroyImmediateThis function should only be used when writing editor code since the delayed destruction will never be invoked in edit mode. In game code you should use Object.Destroy instead. Destroy is always delayed (but executed within the same frame). Use t..

Unity/UnityEditor 2023.05.10