unity hide in inspector multiple code example
Example 1: how ot make a variable public without showing in the inspector
public float notHidden; // Displayed
[HideInInspector] // Hides var below
public float hidden;
Example 2: unity hide in inspector
[HideInInspector]
public float myVar;