I’ve set up a GUItext instance to display on the screen, and was trying to drag and drop it on to a prefab that requires access to it to alter the text property. It won’t let me do this, and clicking on the rollout button next to the public variable “score”(which I declared as a public GUIText variable in my script) in the explorer shows my assets folder in the “select guitext” window as being empty. Just wondering if I’m going about this the right way, is it possible to use a guitext variable in this way, or is there a better way to do it?
Hmm. I’m able to set a GUIText as a public variable in the inspector no problem, whether it just be plainly in the scene or setting it myself through code.
You may want to consider trying making the Score part of a prefab first, and then seeing if you can select it. Access to some objects requires that they be a prefab before they’re assigned as variables in the inspector.