Probably a question that has been asked many times before (although I couldn’t find it anywhere…) but how do I prevent a public variable from showing in the Inspector, beside making it private and make a public set function?
Cookie for answer!
Probably a question that has been asked many times before (although I couldn’t find it anywhere…) but how do I prevent a public variable from showing in the Inspector, beside making it private and make a public set function?
Cookie for answer!
//@System.NonSerialized , tells Unity to not serialize the variable or show it in the inspector view.
@System.NonSerialized
var Myfloat: float = 0.0;
Thank you! As promised.
