Undo.RecordObjects
public static void RecordObjects(Object[] objectsToUndo,
string name);
Description 描述
Records multiple undoable objects in a single call. This is the same as calling Undo.RecordObject multiple times.
Important: To correctly handle instances where objectToUndo is an instance of a Prefab, PrefabUtility.RecordPrefabInstancePropertyModifications must be called after RecordObject.
See Also: Undo.RecordObject.