Undo.RecordObjects

Switch to Manual
public static void RecordObjects (Object[] objectsToUndo, string name);

Description

将多个可撤销对象记录到单个调用中。这与多次调用 Undo.RecordObject 的效果相同。

Important: To correctly handle instances where objectToUndo is an instance of a Prefab, PrefabUtility.RecordPrefabInstancePropertyModifications must be called after RecordObject.

See Also: Undo.RecordObject.