Class Undo
Assembly: UnityEditor.dll
Syntax
Fields
|
Improve this Doc
View Source
postprocessModifications
Declaration
public static Undo.PostprocessModifications postprocessModifications
Field Value
|
Improve this Doc
View Source
Declaration
public static Undo.UndoRedoCallback undoRedoPerformed
Field Value
|
Improve this Doc
View Source
willFlushUndoRecord
Declaration
public static Undo.WillFlushUndoRecord willFlushUndoRecord
Field Value
Methods
AddComponent(GameObject, Type)
Declaration
public static Component AddComponent(GameObject gameObject, Type type)
Parameters
Returns
|
Improve this Doc
View Source
AddComponent<T>(GameObject)
Declaration
public static T AddComponent<T>(GameObject gameObject)
where T : Component
Parameters
Returns
Type Parameters
ClearAll()
Declaration
public static void ClearAll()
|
Improve this Doc
View Source
ClearSnapshotTarget()
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void ClearSnapshotTarget()
ClearUndo(Object)
Declaration
public static void ClearUndo(Object identifier)
Parameters
Type |
Name |
Description |
Object |
identifier |
|
CollapseUndoOperations(Int32)
Declaration
public static void CollapseUndoOperations(int groupIndex)
Parameters
Type |
Name |
Description |
Int32 |
groupIndex |
|
|
Improve this Doc
View Source
CreateSnapshot()
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void CreateSnapshot()
|
Improve this Doc
View Source
Declaration
public static void DestroyObjectImmediate(Object objectToUndo)
Parameters
Type |
Name |
Description |
Object |
objectToUndo |
|
FlushUndoRecordObjects()
Declaration
public static void FlushUndoRecordObjects()
GetCurrentGroup()
Declaration
public static int GetCurrentGroup()
Returns
GetCurrentGroupName()
Declaration
public static string GetCurrentGroupName()
Returns
IncrementCurrentGroup()
Declaration
public static void IncrementCurrentGroup()
MoveGameObjectToScene(GameObject, Scene, String)
Declaration
public static void MoveGameObjectToScene(GameObject go, Scene scene, string name)
Parameters
Declaration
public static void PerformRedo()
Declaration
public static void PerformUndo()
RecordObject(Object, String)
Declaration
public static void RecordObject(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
RecordObjects(Object[], String)
Declaration
public static void RecordObjects(Object[] objectsToUndo, string name)
Parameters
|
Improve this Doc
View Source
RegisterCompleteObjectUndo(Object, String)
Declaration
public static void RegisterCompleteObjectUndo(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
RegisterCompleteObjectUndo(Object[], String)
Declaration
public static void RegisterCompleteObjectUndo(Object[] objectsToUndo, string name)
Parameters
RegisterCreatedObjectUndo(Object, String)
Declaration
public static void RegisterCreatedObjectUndo(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
RegisterFullObjectHierarchyUndo(Object)
Declaration
[Obsolete("Use Undo.RegisterFullObjectHierarchyUndo(Object, string) instead")]
public static void RegisterFullObjectHierarchyUndo(Object objectToUndo)
Parameters
Type |
Name |
Description |
Object |
objectToUndo |
|
RegisterFullObjectHierarchyUndo(Object, String)
Declaration
public static void RegisterFullObjectHierarchyUndo(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
RegisterSceneUndo(String)
Declaration
[Obsolete("Use DestroyObjectImmediate, RegisterCreatedObjectUndo or RegisterUndo instead.")]
public static void RegisterSceneUndo(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
RegisterSnapshot()
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void RegisterSnapshot()
|
Improve this Doc
View Source
RegisterUndo(Object, String)
Declaration
[Obsolete("Use Undo.RegisterCompleteObjectUndo instead")]
public static void RegisterUndo(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
RegisterUndo(Object[], String)
Declaration
[Obsolete("Use Undo.RegisterCompleteObjectUndo instead")]
public static void RegisterUndo(Object[] objectsToUndo, string name)
Parameters
|
Improve this Doc
View Source
RestoreSnapshot()
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void RestoreSnapshot()
RevertAllDownToGroup(Int32)
Declaration
public static void RevertAllDownToGroup(int group)
Parameters
Type |
Name |
Description |
Int32 |
group |
|
RevertAllInCurrentGroup()
Declaration
public static void RevertAllInCurrentGroup()
SetCurrentGroupName(String)
Declaration
public static void SetCurrentGroupName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
|
Improve this Doc
View Source
SetSnapshotTarget(Object, String)
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void SetSnapshotTarget(Object objectToUndo, string name)
Parameters
|
Improve this Doc
View Source
SetSnapshotTarget(Object[], String)
Declaration
[Obsolete("Use Undo.RecordObject instead")]
public static void SetSnapshotTarget(Object[] objectsToUndo, string name)
Parameters
Declaration
public static void SetTransformParent(Transform transform, Transform newParent, string name)
Parameters
Extension Methods