Callback that is triggered after an undo or redo was executed.
no example available in JavaScript
using UnityEditor; using UnityEngine;
public class ExampleScript : MonoBehaviour { void Start() { Undo.undoRedoPerformed += MyUndoCallback; }
void MyUndoCallback() { // some code here } }