- Home /
Unity creates empty cloned object
I'm building a 2D game. I have a GameObject in my scene called "Player" with the tag "Player". In the script that handles my input and my camera movement, I have a call to find the player using "FindGameObjectWithTag", and the player is already in the scene, not instantiated through code.
When I hit play, the camera does not follow the player. Instead, it follows an invisible object. When hitting the jump key, I get the following error: "MissingComponentException: There is no 'Rigidbody2D' attached to the "Player(Clone)" game object, but a script is trying to access it."
Player(Clone) does not appear in the hierarchy like normal clone instantiations do. What is unity doing?
Your answer
![](https://koobas.hobune.stream/wayback/20220612091802im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Sync with visual studio 2010 error 1 Answer
No Monobehaviour scripts in files 1 Answer
2-Dimensional Array Error [CLOSED] 1 Answer