I have a problem. I don’t know if it’s a Unity bug, or if I’m going crazy, but if I declare a variable in JS the variable cannot be seen in the inspector. Here’s an example of some code:
#pragma strict
function Start () {
var myNumber : float;
}
function Update () {
}
I have this script set on my Main Camera, but the variable myNumber cannot be seen or edited at all in the inspector.