↧
Answer by MountDoomTeam
How can you lose the prefab connection? I think you only do that if you change the prefab contents? And it gives a warning. how to reference cloned prefab? instantiating a GameObject in the scene is...
View ArticleAnswer by CostelloNicho
I'm not sure I understand the problem fully, but I'm assuming your using GameObject.Find() to find whatever your camera is trying to follow, but after instantiating the object the name has "(clone)" at...
View ArticleAnswer by CostelloNicho
Try this: ( adapted from your comments ) var hero; void Start(){ hero = GameObject.FindWithTag("Player"); //be sure to set the tag on the correct object } void Update(){ hero.transform.position.x...
View Article