Skip to main content
Version: 4.55.1

Nodes > Script > Get External Variable

Get External Variable

Get a variable from another script graph. If this is connected to a ScriptReference node you can select which variable from a drop down in the inspector, otherwise you must provide the variable name as a string. Tip: This can retrieve variables from the api object of JavaScript based scripts as well.

Inputs

NameTypeDescription
ScriptComponentScriptComponentThe ScriptComponent to get the variable from, best if this is connected to a ScriptReference node.
variableNamestringWhen not connected to a ScriptReference node the variable name can be provided as a string.

Outputs

NameTypeDescription
ObjectanyThe current value of the variable.
Was this page helpful?
Yes
No