script failed to update

Write a simple script with some public variables and attach to a cube. The variables have a set value. Then I change the values in the script(C#). Save script. The values on the cube do not change. If I delete the script from the cube then put the script back on the cube the new values are there. 4.3.3. Very strange.

When you change the values of the variables in the Inspector - even from some other value back to the script’s default values - the Inspector keeps the scene’s values instead.

I heard that - at least in UnityScript - you could make the variables internal (aka accessible but not editable from the Inspector basically) and then change it back, but I never got the equivalent to work in C#. Now, I either reset the values/component or manually change them (or don’t change them unnecessarily :wink: )

Yes, thanks. Reset seems to work. I thought for some reason that they changed when I added to the script.