Class InsertListItem
Inserts an item in a list at a specified index.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitSurtitleAttribute]
[UnitShortTitleAttribute]
[UnitOrderAttribute]
public sealed class InsertListItem : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
enter
The entry point for the node.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
exit
The action to execute once the item has been inserted.
Declaration
[DoNotSerializeAttribute]
public ControlOutput exit { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
index
The zero-based index at which to insert the item.
Declaration
[DoNotSerializeAttribute]
public ValueInput index { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
item
The item to insert.
Declaration
[DoNotSerializeAttribute]
public ValueInput item { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
listInput
The list.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueInput listInput { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
listOutput
The list with the added element. Note that the input list is modified directly and then returned, except if it is an array, in which case a new array with the added element is returned instead.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueOutput listOutput { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Insert(Flow)
Declaration
public ControlOutput Insert(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| ControlOutput |
Implements
IDisposable