Prefab script cannot link to Hierachy Object

I have created a prefab which is just a cube with a script component. The script I have given it needs to be linked to another game object for the script to poke at. However when i try to select the object to link to, it only allows me to link to another prefabs.

Is it possible for a prefab script to link to objects in the hierachy ?

If not is it possible for me to get the object I want through script code ?

Thanks
Stu

A prefab can’t link to objects outside of its own hierarchy. However, after the prefab is instantiated, the instances can.