godot-python icon indicating copy to clipboard operation
godot-python copied to clipboard

Script variables not automatically updating

Open Ryul0rd opened this issue 3 years ago • 2 comments

When I add, remove, or change an exported variable in a Python script the script variables section of the inspector doesn't immediately update to reflect this. The only way I know to get it to update is to close and reopen the editor. Doing this every time I do anything with exported variables is obviously not ideal.

Ryul0rd avatar Nov 17 '21 00:11 Ryul0rd

I also face the same problems in windows with godot 3.4 and 3.5beta3.

captain0xff avatar Apr 22 '22 18:04 captain0xff

Related troubleshooting: godot-python https://github.com/touilleMan/godot-python/issues/268#issuecomment-1321280584


Paste of most relevant part:

  • Closing the scene's tab and re-opening the scene
    also updates Script Variables in the Inspector Dock. Do this if you add new export()ed variables.

  • Switching to a different node in the Scene Dock then back to the node with your Python script will refresh any exported strings from the script. Do this if you update an existing export()'s defaults.

2022-11-20 17_40_35-

-----

gamepad-coder avatar Nov 21 '22 00:11 gamepad-coder