Class ToggleFlow
Toggles the control flow with on and off triggers.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 38)]
public sealed class ToggleFlow : Unit, IUnit, IGraphElementWithDebugData, ISerializationCallbackReceiver, IGraphElementWithData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged
Properties
enter
Entry point to the toggle.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false, order = 1)]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exitOff
Triggered on entry if the flow is off.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Off", horizontalOrder = 2, verticalOrder = 2)]
public ControlOutput exitOff { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
exitOn
Triggered on entry if the flow is on.
Declaration
[DoNotSerialize]
[UnitPortDisplay("On", horizontalOrder = 1, verticalOrder = 2)]
public ControlOutput exitOn { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
isOn
Whether the flow is currently on.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true)]
public ValueOutput isOn { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
startOn
Whether the toggle should start in the on state.
Declaration
[DoNotSerialize]
[Inspectable]
[UnitSettingDisplay("Start On")]
[InspectorToggleLeft]
public bool startOn { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
toggle
Trigger to toggle the flow through the toggle.
Declaration
[DoNotSerialize]
[UnitPortDisplay(order = 4)]
public ControlInput toggle { get; }
Property Value
Type | Description |
---|---|
ControlInput |
turnedOff
Triggered when the flow gets turned off.
Declaration
[DoNotSerialize]
[UnitPortDisplay(horizontalOrder = 4, verticalOrder = 3)]
public ControlOutput turnedOff { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
turnedOn
Triggered when the flow gets turned on.
Declaration
[DoNotSerialize]
[UnitPortDisplay(horizontalOrder = 3, verticalOrder = 4)]
public ControlOutput turnedOn { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
turnOff
Trigger to turn off the flow through the toggle.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Off", horizontalOrder = 3, verticalOrder = 2)]
public ControlInput turnOff { get; }
Property Value
Type | Description |
---|---|
ControlInput |
turnOn
Trigger to turn on the flow through the toggle.
Declaration
[DoNotSerialize]
[UnitPortDisplay("On", horizontalOrder = 2, verticalOrder = 3)]
public ControlInput turnOn { get; }
Property Value
Type | Description |
---|---|
ControlInput |
Methods
CreateData()
Declaration
public IGraphElementData CreateData()
Returns
Type | Description |
---|---|
IGraphElementData |
Implements
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()