- Home /
Question by
jamie 1 · Apr 20, 2011 at 07:58 PM ·
editor-scriptingversion-controlundo
Hooking Undo / RegisterUndo
I have a simple goal: to determine when a file is being modified in memory - i.e. a change now, when the modification in memory is made, not when the file is saved later (that I can do with the SaveAssetsProcessor thank you).
Since unity has a way to register modifications for undo, I could catch most occurrences of modification by hooking the RegisterUndo methods.
How?
Comment
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Getting scene changes 0 Answers
How to undo removing components in an editor extension? 0 Answers
Can you use a more performant undo function than RegisterSceneUndo with DestroyImmediate? 2 Answers
EditorGUILayout - Use of unassigned local variable 2 Answers