Class GetVariable
Gets the value of a variable.
Implements
IDisposable
Inherited Members
Namespace: Unity.VisualScripting
Assembly: solution.dll
Syntax
public sealed class GetVariable : UnifiedVariableUnit, IUnifiedVariableUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable
Properties
fallback
The value to return if the variable is not defined.
Declaration
[DoNotSerializeAttribute]
public ValueInput fallback { get; }
Property Value
| Type | Description |
|---|---|
| ValueInput |
specifyFallback
Whether a fallback value should be provided if the variable is not defined.
Declaration
[SerializeAttribute]
[InspectableAttribute]
[InspectorLabelAttribute]
public bool specifyFallback { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
value
The value of the variable.
Declaration
[DoNotSerializeAttribute]
public ValueOutput value { get; }
Property Value
| Type | Description |
|---|---|
| ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Implements
IDisposable