Skip to main content
Version: 4.55.1

Nodes > Script > Set External Variable

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

NameTypeDescription
ScriptComponentScriptComponentThe ScriptComponent to set the variable on, 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.
valueanyThe value to set to the variable.
Was this page helpful?
Yes
No