Quantcast
Channel: Questions in topic: "clone"
Viewing all articles
Browse latest Browse all 508

Script finds a non-existing object

$
0
0
I have a really weird problem with my game. I'm using GameObject.FindWithTag in the Update() to find the player transform for my camera script. This is obviously very basic stuff. But now, for some reason, the script finds an object called Player(clone), that doesn't exist in the current scene. Every other script and object in the scene works fine. If I manually drag the player in inspector view, it works fine. If I double click the transform variable in the script that currently is Player(clone), it shows an animator controller in the inspector view and no other components. It just doesn't make any sense. The name Player(clone) would indicate that it would be an object created using Instantiate, but I haven't used it at all. I have no idea how to fix this. Also, I can't believe that "wtf" was an actual approved suggested tag.

Viewing all articles
Browse latest Browse all 508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>