Inspector didnt update after changing the script

basically, before I did the challenge I set the movement speed to 0.07 then I realize it was incredibly slow so I changed it to the video being 10 but in the inspector, it didn’t update so I had to manually update it? I know it’s a small thing but i don’t think it should be happening in using visual studio.

Hi @jamster Welcome to the community.

This is not visual studio, but how the inspector works. The values in the inspector are serialized and saved to a file. When you change the value in visual studio, this makes no difference in the inspector because you have ‘set’ a value there that was saved. This is what allows us to set default values in code, and override them in the inspector.

ohhh that makes so much more sense now i thought the script would update the inspector thanks for clearing it up

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms