Class ListContainsItem
Checks whether a list contains the specified item.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Collections/Lists")]
[UnitSurtitle("List")]
[UnitShortTitle("Contains Item")]
[TypeIcon(typeof(IList))]
public sealed class ListContainsItem : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
contains
Whether the list contains the item.
Declaration
[DoNotSerialize]
public ValueOutput contains { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
item
The item.
Declaration
[DoNotSerialize]
public ValueInput item { get; }
Property Value
Type | Description |
---|---|
ValueInput |
list
The list.
Declaration
[DoNotSerialize]
public ValueInput list { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Contains(Flow)
Declaration
public bool Contains(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
Boolean |
Definition()
Declaration
protected override void Definition()