Class CountItems
Counts all items in a collection or enumeration.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Collections")]
public sealed class CountItems : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
collection
The collection.
Declaration
[DoNotSerialize]
public ValueInput collection { get; }
Property Value
Type | Description |
---|---|
ValueInput |
count
The number of items contained in the collection.
Declaration
[DoNotSerialize]
public ValueOutput count { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Count(Flow)
Declaration
public int Count(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Int32 |
Definition()
Declaration
protected override void Definition()