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 } }
Did you find this page useful? Please give it a rating: