Class SelectOnEnum
Selects a value from a set by switching over an enum.
Syntax
[UnitCategory("Control")]
[UnitTitle("Select On Enum")]
[UnitShortTitle("Select")]
[UnitSubtitle("On Enum")]
[UnitOrder(7)]
[TypeIcon(typeof(ISelectUnit))]
public sealed class SelectOnEnum : Unit, ISelectUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
branches
Declaration
[DoNotSerialize]
public Dictionary<object, ValueInput> branches { get; }
Property Value
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Overrides
Implements
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
selection
Declaration
[DoNotSerialize]
public ValueOutput selection { get; }
Property Value
Implements
selector
The value on which to select.
Declaration
[DoNotSerialize]
public ValueInput selector { 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
Extension Methods