Hi Zephyr,
@Bryant_Schaper is right. I believe the reason for this behaviour is that Unity is not supposed to override any values in the Inspector just because something was changed in the code. Otherwise, if you had various Attacker components with different speed values, all values would get reset even if you want to keep them.
If you want to reset a component to the values in your code, click on the cogwheel icon, then on “Reset Component”.
Did this clear it up for you?
See also:
- Forum User Guides : How to mark a topic as solved