The default value of the variable.
The Graph that owns the variable.
ReadonlyidThe UUID of the variable.
Determines if the variable will be modifiable when inspecting the resource.
The name of the variable.
To change the name of a registered variable, use Graph#renameVariable.
The GraphType of the variable.
The GraphType itself is not serializable as it's identity must be globally unique. To solve this issue, the system serializes the system type via the _systemType field. Once the variable is deserialized or cloned, the GraphType is reconstructed at runtime.
Clones this instance.
Deletes the metadata associated with the given key from the user data.
An interface containing a declaration of the meta data fields of
the variable such as CarbonShaderGraphVariableMetaData.
The key of the metadata to delete.
Virtual
Invoked when the variable was added to graph or after deserialized.
Retrieves metadata associated with the specified key.
An interface containing a declaration of the meta data fields of
the variable such as CarbonShaderGraphVariableMetaData.
The metadata associated with the key, or undefined if no metadata is found.
Sets metadata for the graph variable.
An interface containing a declaration of the meta data fields of
the variable such as CarbonShaderGraphVariableMetaData.
The key for the metadata entry.
The value to be associated with the key.
Sets the type of the variable and assigns a new default value.
If the defaultValue is not specified or undefined, a default value will be constructed.
The new type.
OptionaldefaultValue: anyVirtual
Ensures that the state of the node is valid.
The GraphVariable class implements a (local) variable within a Graph. It can be visible and editable only within the graph, or if set to public, also editable from outside.