Class UndoActionBase<TData>
Base class for IUndoAction implementations. Stores undo data serialized and preserves references to the game objects.
Namespace: FlaxEditor
Assembly: FlaxEngine.CSharp.dll
Syntax
public abstract class UndoActionBase<TData> : Object, IUndoAction, IHistoryAction where TData : struct, ValueType
Type Parameters
TData
The type of the data. Must have System.SerializableAttribute. |
Constructors
UndoActionBase()
Declaration
protected UndoActionBase()
Fields
_data
The serialized data (Json text).
Declaration
[Serialize]
protected string _data
Field Value
System.String
|
Properties
ActionString
Name or key of performed action
Declaration
public abstract string ActionString { get; }
Property Value
System.String
|
Implements
Data
Gets or sets the serialized undo data.
Declaration
[NoSerialize]
public virtual TData Data { get; protected set; }
Property Value
TData
|
Methods
Dispose()
Releases unmanaged and - optionally - managed resources.
Declaration
public virtual void Dispose()