C# script not updating in unity inspector after saved

I’ve already checked my preferences for auto refresh, I have it enabled. I already know it’s not because my script has issues in it. For any script I make, it doesn’t update in the inspector when I save it. For example, I will create a new script, make a public bool, and it doesn’t pop up in the inspector. Sometimes it updates in the inspector but most of the time it doesn’t. This is super annoying. Any suggestions?

Before you can see your new public member pop up in the editor, Unity needs all your scripts to be free of errors. If some irrelevant script has some irrelevant error, then Unity simply refuses to show your new public member until you fix that irrelevant error.

If you don’t see any errors in the console, whatsoever, from any scripts, check that the console doen’t hide errors. (small icons in the console upper right).

If you still see no errors, whatsoever, from any scripts, restart Unity. Then if it still “doesn’t work”, consider clearing the project cache (How to clear cache for Unity? - Questions & Answers - Unity Discussions).

If it still doesn’t work, check if your file is being updated at all. Is it read-only? Is your storage disk full… ? Are you using linux root user, making unity unable to read your file…? If not, post more info.