Class SetVariable
Assigns the value of a variable.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitShortTitle("Set Variable")]
public sealed class SetVariable : UnifiedVariableUnit, IUnifiedVariableUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
assign
The entry point to assign the variable.
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
Definition()
Declaration
protected override void Definition()