Class SelectUnit
Selects a value from a set by checking if a condition is true or false.
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Control")]
[UnitTitle("Select")]
[TypeIcon(typeof(ISelectUnit))]
[UnitOrder(6)]
public sealed class SelectUnit : Unit, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
condition
Declaration
[DoNotSerialize]
public ValueInput condition { get; }
Property Value
ifFalse
The value to return if the condition is false.
Declaration
[DoNotSerialize]
[PortLabel("False")]
public ValueInput ifFalse { get; }
Property Value
ifTrue
The value to return if the condition is true.
Declaration
[DoNotSerialize]
[PortLabel("True")]
public ValueInput ifTrue { get; }
Property Value
selection
Declaration
[DoNotSerialize]
public ValueOutput selection { get; }
Property Value
Methods
Branch(Flow)
Declaration
public object Branch(Flow flow)
Parameters
| Type |
Name |
Description |
| Flow |
flow |
|
Returns
Definition()
Declaration
protected override void Definition()
Overrides
Implements
Extension Methods