This version of Unity is unsupported.

Undo.ClearUndo

Declaration

public static void ClearUndo(Object identifier);

Description

Removes all Undo operation for the identifier object registered using Undo.RegisterCompleteObjectUndo from the undo stack.