Can't See variables in inspector

I started a project and everything was ok. Now I try to add variables like i used to and i can’t see them in the inspector. is that some kind of setting?

The Inspector only shows the PUBLIC variables.

If, for some reason, you need to check private variables, just add this in the above line of your variable [SerializeField]


public a;
private b;
private c;

A and C will be in the Inspector.

Or maybe you have folded the script closed in the inspector. Click on it in the inspector to open it out again.