Version: 2022.2

Undo.isProcessing

切换到手册
public static bool isProcessing ;

描述

Returns true if the editor is currently processing undo or redo operations, false otherwise.

Note: it is forbidden to call RegisterCreatedObjectUndo while this value is true.