Class If
Branches flow by checking if a condition is true or false.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitOrderAttribute]
[RenamedFromAttribute]
[RenamedFromAttribute]
public sealed class If : Unit, IBranchUnit, 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 |
enter
The entry point for the branch.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
ifFalse
The action to execute if the condition is false.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlOutput ifFalse { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
ifTrue
The action to execute if the condition is true.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlOutput ifTrue { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
| Type | Name | Description |
|---|---|---|
| Flow | flow |
Returns
| Type | Description |
|---|---|
| ControlOutput |
Implements
IDisposable