Referencing objects on nested prefabs / script reference GUIText

I have a spaceship prefab, the prefab has a script associated to it which allows me to specify a laser prefab, which in turn has a laser impact script (c#). I have also created a GUIText which will hold the score, and that resides within my project.

I have extended the laser impact script functionality so that it exposes an additional public GUIText score, but when I try to drag the score GUIText onto it (so that its referenced) through the inspector it won’t allow me. I’ve noticed that I cannot drag objects onto any nested prefab public properties.

Is there a work around? Or how can I reference an already existing GUIText in my c# script? I have tried find on the GameObject, but the compiler throws an error due to type casting;

GUIText test;
test = GameObject.Find(“score”);
test.text = “HelloWorld”;

Apologies for the double question in one.

have you tried dragging the prefab into the hierarchy, making the changes to it there, and then clicking on the “apply” button near the top of it’s inspector panel (this makes the changes you just did in the hierarchy part of the prefab in the assets)?

I can’t have the child prefab in the hierarchy :frowning: The reason being is that its an explosion (the explosion then happens on start of the game). So it has to be an asset referenced from the project instead.