Class ClearDictionary
Clears all items from a dictionary.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Collections/Dictionaries")]
[UnitSurtitle("Dictionary")]
[UnitShortTitle("Clear")]
[UnitOrder(4)]
[TypeIcon(typeof(RemoveDictionaryItem))]
public sealed class ClearDictionary : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
dictionaryInput
The dictionary.
Declaration
[DoNotSerialize]
[PortLabel("Dictionary")]
public ValueInput dictionaryInput { get; }
Property Value
Type | Description |
---|---|
ValueInput |
dictionaryOutput
The cleared dictionary. Note that the input dictionary is modified directly and then returned.
Declaration
[DoNotSerialize]
[PortLabel("Dictionary")]
public ValueOutput dictionaryOutput { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
enter
The entry point for the node.
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exit
The action to execute once the dictionary has been cleared.
Declaration
[DoNotSerialize]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
Definition()
Declaration
protected override void Definition()