Class SelectOnFlow
Selects a value from a set by matching it with an input flow.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Control")]
[UnitTitle("Select On Flow")]
[UnitShortTitle("Select")]
[UnitSubtitle("On Flow")]
[UnitOrder(8)]
[TypeIcon(typeof(ISelectUnit))]
public sealed class SelectOnFlow : Unit, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
branchCount
Declaration
[DoNotSerialize]
[Inspectable]
[UnitHeaderInspectable("Branches")]
public int branchCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
branches
Declaration
[DoNotSerialize]
public Dictionary<ControlInput, ValueInput> branches { get; }
Property Value
Type | Description |
---|---|
Dictionary<ControlInput, ValueInput> |
exit
Triggered when any selector is entered.
Declaration
[DoNotSerialize]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
selection
The selected value.
Declaration
[DoNotSerialize]
public ValueOutput selection { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Implements
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Select(Flow, ValueInput)
Declaration
public ControlOutput Select(Flow flow, ValueInput branchValue)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
ValueInput | branchValue |
Returns
Type | Description |
---|---|
ControlOutput |