Unity/UnityEditor

[Unity/UnityEditor] Undo

sorry0101 2023. 9. 25. 18:34

Undo.RecordObject(UnityEngine.Object, string);

Undo.RegisterCompleteObjectUndo(UnityEngine.Object, string);

 

- 둘 다 오브젝트 변경 사항을 기록하는 기능

- RegisterCompleteObjectUndo 가 더 깊은 복사

 

참고

https://forum.unity.com/threads/monobehaviour-references-are-lost-on-undo.587011/