Class VariableUnit
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[Obsolete("Use the new unified variable nodes instead.")]
public abstract class VariableUnit : Unit, IVariableUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Constructors
VariableUnit()
Declaration
protected VariableUnit()
VariableUnit(string)
Declaration
protected VariableUnit(string defaultName)
Parameters
Type | Name | Description |
---|---|---|
string | defaultName |
Properties
defaultName
Declaration
[DoNotSerialize]
public string defaultName { get; }
Property Value
Type | Description |
---|---|
string |
name
The name of the variable.
Declaration
[DoNotSerialize]
public ValueInput name { get; }
Property Value
Type | Description |
---|---|
ValueInput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
GetDeclarations(Flow)
Declaration
protected abstract VariableDeclarations GetDeclarations(Flow flow)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow |
Returns
Type | Description |
---|---|
VariableDeclarations |