value in variable dont change

I have a problem , for example i create 1 variable

public float a =0.1f;

and i print that value

Debug.Log(a);

it return 0.1

but when i change the value to 0.2f and save it in mono editor
it dont change , unity print the previous value 0.1

the value changed when i restart the unity editor.

why this is happen? and how to fix it?

The initial value in the variables is read and stored by the Inspector. By default it’s the value in the inspector that is used to initialise the variable. To ask the inspector to go back to the script and re-read the values, simply click the small cog icon on the right hand side of the script in the inspector and choose “Reset”.