Quantcast
Channel: Answers by "ransomink"
Viewing all articles
Browse latest Browse all 80

Answer by ransomink

$
0
0
Is your bigBrother game object already in the scene? If it is, then you just need to do: `bigBrother.SetActive(true);` when the object's collide ---------- If you want to spawn your bigBrother object into the scene, when you instantiate, you do not save the created game object to a variable, so you cannot access it and set it to active. This will create a game object and set it to active. Instantiate also has parameters to set the position, rotation, and parent of the created game object. Add those, if needed GameObject clone = Instantiate(bigBrother); clone.SetActive(true);

Viewing all articles
Browse latest Browse all 80

Trending Articles



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