Putting GameObject to the script of Prefab

Hello everybody,

Today I realized that I’m not able to drag GameObjects to a script of prefab. But, somehow I need to access those gameobjects from the prefab.

What is the best way of doing it?

public GameObject anObject;
void Awake () {
anObject = GameObject.Find(“in-game_object_name”);
}

Thanks to Unity Forum. I found the answer.