하이어라키 창에서 오브젝트 선택 관련해서 해당 api를 사용해서 판단할 수 있다.
Selection.acitveGameObject
참고
https://docs.unity3d.com/2022.3/Documentation/ScriptReference/Selection.html
'Unity > UnityEditor' 카테고리의 다른 글
[Unity/UnityEditor] Undo Redo MissingReference (0) | 2023.07.28 |
---|---|
[Unity/UnityEditor] 용어 정리 (0) | 2023.05.23 |
[Unity/UnityEditor] EditorApplication, EditorSceneManager (0) | 2023.05.17 |
[Unity/UnityEditor] EditorApplication.isPlaying (0) | 2023.05.10 |
[Unity/UnityEditor] DestroyImmediate 에디터 모드 시 오브젝트 제거 (0) | 2023.05.10 |