Input.CanUndo

boolean Input.CanUndo (

string ObjectName )

Example 1

can_undo = Input.CanUndo("Input1");
if (can_undo)
Input.Undo("Input1");
end

Determines if an undo operation can be performed on the "Input1" object and if it can, performs an undo operation.

See also: Related Actions