Quantcast
Channel: Answers for "Cloned Prefab"
Viewing all articles
Browse latest Browse all 6

Answer by CostelloNicho

$
0
0
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 the end. If this is the case you can do this: 1. Create a variable to track the instantiated object. GameObject trackThisObject; 2. assign the instantiated object. trackThisObject = GameObject.Instantiate( instantiated GameObject, pos, rot); 3. Use track this object for camera tracking. Hope this helps, a bit lost by the question.

Viewing all articles
Browse latest Browse all 6

Trending Articles



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