Class SetVariableUnit
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitShortTitle("Set Variable")]
public abstract class SetVariableUnit : VariableUnit, IVariableUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Constructors
SetVariableUnit()
Declaration
protected SetVariableUnit()
SetVariableUnit(string)
Declaration
protected SetVariableUnit(string defaultName)
Parameters
Type | Name | Description |
---|---|---|
string | defaultName |
Properties
assign
The entry point to assign the variable reference.
Declaration
[DoNotSerialize]
public ControlInput assign { get; set; }
Property Value
Type | Description |
---|---|
ControlInput |
assigned
The action to execute once the variable has been assigned.
Declaration
[DoNotSerialize]
public ControlOutput assigned { get; set; }
Property Value
Type | Description |
---|---|
ControlOutput |
input
The value to assign to the variable.
Declaration
[DoNotSerialize]
[PortLabel("New Value")]
public ValueInput input { get; }
Property Value
Type | Description |
---|---|
ValueInput |
output
The value assigned to the variable.
Declaration
[DoNotSerialize]
[PortLabel("Value")]
public ValueOutput output { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Assign(Flow)
Declaration
protected virtual ControlOutput Assign(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
ControlOutput |
Definition()
Declaration
protected override void Definition()