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