Can't add a heirarchy object to script

This camera script needs an object to follow, that object would be Player (in Heirarchy tab on the left of the screen).
The 3rd person platformer tutorial told me to drag Player into the Target line in the camera script (on the right bottom of the screen).

Which wouldn’t work: http://tinypic.com/view.php?pic=b5joeu&s=7

I tried clicking on the little dot on the same line to open up the “target choosing window”, it’s blank: http://tinypic.com/view.php?pic=2uqkhft&s=7

I tried moving my Player prefab into the target line, it works, in the sense that the target is now the Player prefab, not the actual object on the scene. Then I deleted my current Player object and placed a new Player object into the scene from the aforementioned prefab.
It still won’t work, at least this time there’s no error line to be seen.

Now what?

2 Answers

2

Dragging the Player from the Scene into that spot should work, but your picture also shows that you have a compiler error. Perhaps if you fix that, it will work (sometimes things don’t work if there are any compiler errors)

Thanks, solved. Just had to put the Player into the script of the object within the heirarchy tab, not the one in the project tab.