# RecordObjects(Object[], string)

> Records multiple undoable objects in a single call. This is the same as calling Undo.RecordObject multiple times.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void RecordObjects(Object[] objectsToUndo, string name)
```

### Parameters

**** (\[Object\[]]\(/engine/6000.5/script-reference/unityengine/object)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Remarks

**Important:** To correctly handle instances where *objectToUndo* is an instance of a Prefab, [PrefabUtility.RecordPrefabInstancePropertyModifications](/engine/6000.5/script-reference/unityeditor/prefabutility/recordprefabinstancepropertymodifications.md) must be called after RecordObject.

Additional Resources: [Undo.RecordObject](/engine/6000.5/script-reference/unityeditor/undo/recordobject.md).
