Class UpdateStorage<TStorage>
Represents a node editor command that can be used to update the storage value of a node.
public class UpdateStorage<TStorage> : INodeEditorCommand, IDisposable
Type Parameters
TStorageThe type of value the node stores
- Inheritance
-
objectUpdateStorage<TStorage>
- Implements
Constructors
UpdateStorage(Node<TStorage>, TStorage?, string)
Creates a new instance of the UpdateStorage<TStorage> class.
public UpdateStorage(Node<TStorage> node, TStorage? value, string valueDescription = "value")
Parameters
nodeNode<TStorage>The node to update.
valueTStorageThe new value of the node.
valueDescriptionstringThe description of the value that was updated.
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()