Class SelectUnit
Selects a value from a set by checking if a condition is true or false.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitTitleAttribute]
[UnitOrderAttribute]
public sealed class SelectUnit : Unit, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
condition
The condition to check.
Declaration
[DoNotSerializeAttribute]
public ValueInput condition { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
ifFalse
The value to return if the condition is false.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueInput ifFalse { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
ifTrue
The value to return if the condition is true.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ValueInput ifTrue { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
selection
The returned value.
Declaration
[DoNotSerializeAttribute]
public ValueOutput selection { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Branch(Flow)
Declaration
public object Branch(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| object |
Definition()
Declaration
protected override void Definition()
Overrides
Implements
IDisposable