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