Currently, I have an object on the scene, and one in prefab. I want the prefab's script to reference to the object on the scene through the
public GameObject obj;
code. However, when I tried to add the object in the editor, I cant seem to be able to select any objects from the scene, only ones in prefabs.
I am quite new at unity, so am I missing something really basic here?
Thanks for any help!
GameObject
. Any publicMonoBehaviour
member can be set this way. – aggsol Jun 12 '15 at 09:10