Function UndoRedo.addUndoReference

Register a reference for "undo" that will be erased if the "undo" history is lost. This is useful mostly for nodes removed with the "do" call (not the "undo" call!).

void addUndoReference (
  GodotObject object
) nothrow @nogc;