I know there are a few threads on this topic and they all say to make your variables public member variables which I have done but still can’t see them in the Inspector. Is there some setting or other way of declaring variables in Boo? I can’t get any variables in any of my scripts to show up.
For example, I am following this tutorial in order to learn Unity. My code is EXACTLY like the version in the video:
import UnityEngine
class boulderGeneratorScript (MonoBehaviour):
public MinBoulderCount = 10
public MaxBoulderCount = 18
public boulder as Boulder
def Start ():
for i in range(1, Random.range(MinBoulderCount, MaxBoulderCount)):
x = Random.Range(-14.0f, 14.0f)
y = Random.Range(-10.0f, 10.0f)
rotation = Quaternion.Euler(0, 0, Random.Range(0, 359))
Instantiate(boulder, Vector3(x,y,0), rotation)
def Update ():
pass
In the video you can see the public variables showing up in the Inspector, but I don’t see them. I am using the latest version of Unity (4.0) on Windows 7. I have tried switching the Inspector to debug mode but that doesn’t help. Any suggestions?