I have a game object prefab, say myPrefab.
On myPrefab, I have a script attached, which contains this line (I want myPrefab to follow ObjectToFollow, but that is irrelevant):
var ObjectToFollow: GameObject;
So now in the inspector, when I have myPrefab selected, under the aforementioned script theres: Object To Follow ___________None (Game Object)
In the None (Game Object) field, I can drag and drop any other prefab.
I cannot however, drag and drop any game object from the Hierarchy into the None (Game Object) field. What should I do to put my gameObject to the Object To Follow slot in the Inspector?
The problem is that the ObjectToFollow is the main object of the game and it is already in the Hierarchy when the level begins.
I suppose theres something really basic that Im missing here.