Nodes > Script > Set External Variable

Set a variable on 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 set variables on the api object of JavaScript based scripts as well.
Inputs
| Name | Type | Description |
|---|---|---|
| ScriptComponent | ScriptComponent | The ScriptComponent to set the variable on, 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. |
| value | any | The value to set to the variable. |
Was this page helpful?