godot-python
godot-python copied to clipboard
Script variables not automatically updating
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.
I also face the same problems in windows with godot 3.4 and 3.5beta3.
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 updatesScript Variables
in the Inspector Dock. Do this if you add newexport()
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.