Update of Script Variables

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Adam
:warning: Old Version Published before Godot 3 was released.

I am using a variable called Speed in my script but in order for the change to take place it seems that I need to press the circle icon next to the Speed script variable in the Inspector tab. The variable doesn’t get updated even when I am loading the script. Why is this happening? Should I always update the values manually?

The version of Godot that I am using is 2.0.3.

:bust_in_silhouette: Reply From: vnen

Exported variables are saved in the scene. This way you can update in the editor without having to modify the code. So even if you leave at the default, if you change the code the scene will still have the saved value, so you have to refresh it if you want to use the coded one.

:bust_in_silhouette: Reply From: georgehudson

It would be automatically saved I guess :slight_smile: