public variables not displaying in inspector

I am declaring public variables that are not being displayed in the inspector. I am trying to assign a prefab to a public GameObject. Is there a way to do that in the script?

I realize this is an old question, but I stumbled across this while trying to resolve it on my machine. As it turns out, in Unity4 public static variables do not appear in the inspector. When I changed them to non-static variables, they showed up like I expected.

I’m curious why this is, of course. I’m new to programming and don’t see the logic.