- Home /
Question by
Coolguy347 · Nov 30, 2014 at 07:32 AM ·
variablestaticpublicpublic variablestatic variable
How to make variable accessible by other scripts but not visible in editor?
Please no hate, im new. Im confused how to do this because I basically know that public variables are visible in the editor but static vars are only accessible in the same class? I'm problably wrong somewhere but can someone help me?.
Comment
Answer by Kiwasi · Nov 30, 2014 at 07:33 AM
[HideInInspector]
public float myFloat;
http://docs.unity3d.com/ScriptReference/HideInInspector.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613172753im_/https://answers.unity.com/themes/thub/images/avi.jpg)