Version: 2018.2

Undo.undoRedoPerformed

Switch to Manual
public static Undo.UndoRedoCallback undoRedoPerformed ;

Description

Callback that is triggered after an undo or redo was executed.

using UnityEditor;
using UnityEngine;

public class ExampleScript : MonoBehaviour { void Start() { Undo.undoRedoPerformed += MyUndoCallback; }

void MyUndoCallback() { // some code here } }