Topic was automatically imported from the old Question2Answer platform.
Asked By
ondesic
Some languages have a place in the debugger that let you continuously view a variable you have typed in. This allows you to watch the one desired variable value without having to open a few nodes and members to get to the desired variable.
If you wanna see a variable in the debugger you need to use export in your code.
Depending on what you export there may be a slght variation.
Here is a simple example for how to export a simple number to the editor via script:
Under the variables at the start of your script type:
export var nr = 5
this will make an editable variable appear as a script variable in the editor in the inspector on the object that the script is attached to.
My answer is offtopic sorry about that. i thought you were just looking for a way to access a variable so you can swap it around while working. English is not my native language I apologize.