Yesterday I talked about the [SerializeField] attribute and how useful it can be for programmers to uphold good software engineering principles while allowing level designers to change variables. Today I’ll talk about the exact opposite, when you need a public variable, but you want designers to keep their filthy mitts off it. Step forward [HideInInspector].
As you can see, anything with the HideInInspector attribute won’t get shown in the inspector. Does what it says on the tin really!