All Questions


Tetteh Nartey

Script Var

How do I find the script variables in the inspector?
  • They should appear after the compiler reads your gdscript code and finds declarations with the export keyword. For example:

    export var my_variable := 50.0

    You can then select the node that has that script attached to it and "My Variable" should appear at the top of the Inspector.

    Sometimes, it doesn't. When that happens, try:

    • Closing and reopening the scene.
    • Closing and reopening the editor.

    The missing variables should now appear.