Unity Tip Hide your inspector values or variables

How to hide some of the variables or values in the Inspector Window

-

a computer screen with a bunch of text on it

[HideInInspector] public Vector2 Vector2Variable;

Thank you for reading CG BOSS Games. This post is public so feel free to share it.

Just add the brackects [HideInInspector] to the code and it will be hidden.

This is a useful thing to do to clean up your inspector window so you won’t accidentally change some variables.

Oringal Post here:

Reply

or to participate.