Class SwitchOnEnum
Branches flow by switching over an enum.
Syntax
[UnitCategory("Control")]
[UnitTitle("Switch On Enum")]
[UnitShortTitle("Switch")]
[UnitSubtitle("On Enum")]
[UnitOrder(3)]
[TypeIcon(typeof(IBranchUnit))]
public sealed class SwitchOnEnum : Unit, IBranchUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
branches
Declaration
[DoNotSerialize]
public Dictionary<Enum, ControlOutput> branches { get; }
Property Value
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Overrides
Implements
enter
The entry point for the switch.
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
Implements
enum
The enum value on which to switch.
Declaration
[DoNotSerialize]
public ValueInput enum { get; }
Property Value
enumType
Declaration
[Serialize]
[Inspectable]
[UnitHeaderInspectable]
[TypeFilter(new Type[]{}, Enums = true, Classes = false, Interfaces = false, Structs = false, Primitives = false)]
public Type enumType { get; set; }
Property Value
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Enter(Flow)
Declaration
public ControlOutput Enter(Flow flow)
Parameters
Type |
Name |
Description |
Flow |
flow |
|
Returns
Extension Methods