- BossKey ReCap Game News
- Posts
- Unity Tip Hide your inspector values or variables
Unity Tip Hide your inspector values or variables
How to hide some of the variables or values in the Inspector Window
-

[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