Hi all,
I’m using Undo.RecordObject to undo changes to a mesh and need to do a clean up after the user presses Ctrl-Z but can’t determine the difference between this and Ctrl-Y.
The following code tells me that something happened but I can’t find any extra info.
if (Event.current.type == EventType.ValidateCommand)
{
switch (Event.current.commandName)
{
case "UndoRedoPerformed":
Debug.Log ("What actually happened?");
break;
}
}
Thanks in advance for any help.