文档

Unity Engine

Unity Engine

RecordObjects(Object[], string)

Records multiple undoable objects in a single call. This is the same as calling Undo.RecordObject multiple times.
阅读时间1 分钟最后更新于 1 天前

Definition

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.