Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RecordObjects(Object[], string)

Records multiple undoable objects in a single call. This is the same as calling Undo.RecordObject multiple times.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void RecordObjects(Object[] objectsToUndo, string name)

Parameters

objectsToUndo


name

Remarks

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