Is there a way to not show everything in inspector?

I don’t know if the title is correct but basically, I’ve got a custom editor that has this:

		public override void OnInspectorGUI() 

which Hides the script all the public variables of the script it’s targeting (hope I’m using correct terms here lol)

Anyway I know I can show the variables with:


Which is great, but I don’t want it to show eveything. So is there a way to have a beginning and an end, or is there a way to pick and choose certain variables to show?

Thanks a lot!!

You can do it with a custom inspector, using Serialized Properties and Property Fields but the much quicker way is to simply hide the variables in your script with HideInInspector