-

[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: