Simple question about public components

I’m accessing a different script on a different gameobject in c# to change a few variables. I’ve set the integers im changing to: public int intX;.

I actually have quite a bit of these and it’s inconvenient to have them all listed in the inspector. Is there a way to make it so that these vars wouldn’t display in the inspector, if that makes any sense?

I think you’re looking for this; Unity - Scripting API: HideInInspector

2 Likes

Oh wow, huge thanks