Class UndoActionObject
Undo action object.
Namespace: FlaxEditor.History
Assembly: FlaxEngine.CSharp.dll
Syntax
public class UndoActionObject : UndoActionBase<UndoActionObject.DataStorage>, IUndoAction, IHistoryAction
Constructors
UndoActionObject(List<MemberComparison>, String, Object)
Initializes a new instance of the UndoActionObject class.
Declaration
public UndoActionObject(List<MemberComparison> diff, string actionString, object targetInstance)
Parameters
System.Collections.Generic.List<FlaxEditor.Utilities.MemberComparison>
diff
The difference. |
System.String
actionString
The action string. |
System.Object
targetInstance
The target instance. |
Properties
ActionString
Name or key of performed action
Declaration
public override string ActionString { get; }
Property Value
System.String
|
Overrides
FlaxEditor.UndoActionBase<FlaxEditor.History.UndoActionObject.DataStorage>.ActionString
Data
Gets or sets the serialized undo data.
Declaration
public override UndoActionObject.DataStorage Data { protected set; }
Property Value
UndoActionObject.DataStorage
|
Overrides
FlaxEditor.UndoActionBase<FlaxEditor.History.UndoActionObject.DataStorage>.Data
Target
Gets the target.
Declaration
public object Target { get; }
Property Value
System.Object
|
Methods
Do()
Performs this action.
Declaration
public override void Do()
Overrides
FlaxEditor.UndoActionBase<FlaxEditor.History.UndoActionObject.DataStorage>.Do()
PrepareData()
Prepares the data for the undo.
Declaration
public UndoActionObject.DataPrepared PrepareData()
Returns
UndoActionObject.DataPrepared
The prepared undo action data. |
Undo()
Undoes this action.
Declaration
public override void Undo()
Overrides
FlaxEditor.UndoActionBase<FlaxEditor.History.UndoActionObject.DataStorage>.Undo()