The inspector has been working fine for me until today. I tried setting some public values in a script with the inspector, and when the code ran them they were all 0. I tried adding a test integer, just to see if it was my fault or Unity’s. At the end of Start() and in Update() I tested to see if my test integer was being set properly by the inspector; it wasn’t. The inspector is properly saving values, as when I close and reopen Unity the values I’ve set are still there. It’s just not working when the code runs. I’m not sure what to do at this point.
If you’re changing values while the project is running, they do not save. You have to be in edit mode for the inspector to save values. Some tools to save runtime values can be found in the Asset Store - alternatively you could try to remember the values you changed, and edit them after hitting stop.