Nodes > Script > 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
| Name | Type | Description |
|---|---|---|
| ScriptComponent | ScriptComponent | The ScriptComponent to get the variable from, best if this is connected to a ScriptReference node. |
| variableName | string | When not connected to a ScriptReference node the variable name can be provided as a string. |
Outputs
| Name | Type | Description |
|---|---|---|
| Object | any | The current value of the variable. |
Was this page helpful?