Class Assign
Caches the input so that all nodes connected to the output retrieve the value only once.
Inherited Members
Namespace: Ludiq.Bolt
Syntax
[UnitCategory("Flow", 34)]
[Obsolete("Use the new graph variables instead.")]
public sealed class Assign : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphChild, IObservableDisposable, IDisposable, INotifiedCollectionChild<IGraph>, ICollectionChild<IGraph>, IPrewarmable, IIdentifiable, INotifyPropertyChanged, ISerializationCallbackReceiver
Constructors
Assign()
Declaration
public Assign()
Assign(HybridType)
Declaration
public Assign(HybridType type)
Parameters
Type | Name | Description |
---|---|---|
HybridType | type |
Properties
canDefine
Declaration
public override bool canDefine { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.canDefine
enter
The moment at which to assign the value. The output value will only get updated when this gets triggered.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exit
The action to execute once the value has been cached.
Declaration
[DoNotSerialize]
[UnitPortDisplay(showLabel = false)]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
input
The value to assign when the node is entered.
Declaration
[DoNotSerialize]
[UnitPortDisplay(primary = true, showLabel = false)]
public ValueInput input { get; }
Property Value
Type | Description |
---|---|
ValueInput |
name
A name for the assigned value.
Declaration
[DoNotSerialize]
[Inspectable]
[InspectorPlaceholderLabel("(Name)")]
public string name { get; set; }
Property Value
Type | Description |
---|---|
String |
output
The assigned value, as it was the last time this node was entered.
Declaration
[DoNotSerialize]
[UnitPortDisplay("Assigned", primary = true, showLabel = false)]
public ValueOutput output { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
type
The type of the assigned value.
Declaration
[Serialize]
[Inspectable]
public HybridType type { get; set; }
Property Value
Type | Description |
---|---|
HybridType |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Ludiq.Bolt.Unit<Ludiq.Bolt.FlowGraph>.Definition()