Some of my code finds the player object with
GameObject avatar = GameObject.FindGameObjectWithTag( "Player" );
lately this code has been returning a different player object than the one in the scene.
Instead of returning "SwingCharMecAlexis" it's returning "SwingCharMecAlexis (clone)"
Now, as far as I know, I am not instantiating this clone. I don't know where it's coming from, and would like to find out, because that's just weird. *I can't even see it in the editor / inspector* while the game is running. So what is this strange semi-visible object? Where did it come from?
I searched for every instance of Instantiate in the code, to see if something was somehow accidentally copying SwingCharMecAlexis that shouldn't be, but nothing looks like it could cause this.
Is there some other way a (clone) can be created?
Any advice on how I can track this down?
↧