Class SetObjectVariable
Sets the value of an object variable.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitSurtitle("Object")]
public sealed class SetObjectVariable : SetVariableUnit, IObjectVariableUnit, IVariableUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Constructors
SetObjectVariable()
Declaration
public SetObjectVariable()
SetObjectVariable(String)
Declaration
public SetObjectVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name |
Properties
source
The source of the variable.
Declaration
[DoNotSerialize]
[NullMeansSelf]
public ValueInput source { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
GetDeclarations(Flow)
Declaration
protected override VariableDeclarations GetDeclarations(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
VariableDeclarations |