[SOLVED] private variable displaying in the inspector but not editable

At first it was a public variable with the “HideInInspector” attribute but it still displayed. I then made it private and but it’s still showing. How can I stop it from displaying in the inspector?

Do you have inspector debug mode on?

No basically I was misreading some stuff and my classes inherited from another old class with the same name as the new class (but in a different namespace) which caused some confusion on my part.