Undo.RecordObjects

Declaration

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.

Additional resources: Undo.RecordObject.


Did you find this page useful? Please give it a rating: