Class GetListItem
Gets the item at the specified index of a list.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Collections/Lists")]
[UnitSurtitle("List")]
[UnitShortTitle("Get Item")]
[UnitOrder(0)]
[TypeIcon(typeof(IList))]
public sealed class GetListItem : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Properties
index
The zero-based index.
Declaration
[DoNotSerialize]
public ValueInput index { get; }
Property Value
Type | Description |
---|---|
ValueInput |
item
The item.
Declaration
[DoNotSerialize]
public ValueOutput item { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
list
The list.
Declaration
[DoNotSerialize]
public ValueInput list { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Get(Flow)
Declaration
public object Get(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Object |