Quantcast
Channel: Answers for "Cloned Prefab"
Browsing latest articles
Browse All 6 View Live

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 Article



Answer 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 Article

Answer 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
Browsing latest articles
Browse All 6 View Live




Latest Images

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