Undo.RecordObject(UnityEngine.Object, string);
Undo.RegisterCompleteObjectUndo(UnityEngine.Object, string);
- 둘 다 오브젝트 변경 사항을 기록하는 기능
- RegisterCompleteObjectUndo 가 더 깊은 복사
참고
https://forum.unity.com/threads/monobehaviour-references-are-lost-on-undo.587011/
'Unity > UnityEditor' 카테고리의 다른 글
[Unity/UnityEditor] Handles.Label Background (0) | 2024.07.16 |
---|---|
[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] UnityEditor.Selection (0) | 2023.05.10 |