- 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