Class AddDictionaryItem
Adds an item to a dictionary.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Collections/Dictionaries")]
[UnitSurtitle("Dictionary")]
[UnitShortTitle("Add Item")]
[UnitOrder(2)]
public sealed class AddDictionaryItem : 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 dictionary with the added element. Note that the input dictionary is modified directly 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 item has been added.
Declaration
[DoNotSerialize]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
key
The key of the item to add.
Declaration
[DoNotSerialize]
public ValueInput key { get; }
Property Value
Type | Description |
---|---|
ValueInput |
value
The value of the item to add.
Declaration
[DoNotSerialize]
public ValueInput value { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()