Class ToggleFlow
Toggles the control flow with on and off triggers.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
[UnitCategory]
[UnitOrderAttribute]
public sealed class ToggleFlow : Unit, IUnit, IGraphElementWithDebugData, IGraphElementWithData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
enter
Entry point to the toggle.
Declaration
[DoNotSerializeAttribute]
public ControlInput enter { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
exitOff
Triggered on entry if the flow is off.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlOutput exitOff { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
exitOn
Triggered on entry if the flow is on.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlOutput exitOn { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
isOn
Whether the flow is currently on.
Declaration
[DoNotSerializeAttribute]
public ValueOutput isOn { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
startOn
Whether the toggle should start in the on state.
Declaration
[SerializeAttribute]
[InspectableAttribute]
[UnitHeaderInspectableAttribute]
[InspectorToggleLeftAttribute]
public bool startOn { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
toggle
Trigger to toggle the flow through the toggle.
Declaration
[DoNotSerializeAttribute]
public ControlInput toggle { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
turnOff
Trigger to turn off the flow through the toggle.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlInput turnOff { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
turnOn
Trigger to turn on the flow through the toggle.
Declaration
[DoNotSerializeAttribute]
[PortLabelAttribute]
public ControlInput turnOn { get; }
Property Value
| Type | Description |
|---|---|
| ControlInput |
turnedOff
Triggered when the flow gets turned off.
Declaration
[DoNotSerializeAttribute]
public ControlOutput turnedOff { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
turnedOn
Triggered when the flow gets turned on.
Declaration
[DoNotSerializeAttribute]
public ControlOutput turnedOn { get; }
Property Value
| Type | Description |
|---|---|
| ControlOutput |
Methods
CreateData()
Declaration
public IGraphElementData CreateData()
Returns
| Type | Description |
|---|---|
| IGraphElementData |
Definition()
Declaration
protected override void Definition()
Overrides
Implements
IDisposable