Quantcast
Channel: Answers for "Prefab Variables Changing in the Original, Not the Copies"
Browsing latest articles
Browse All 4 View Live

Answer by Bonfire-Boy

So, `player` is your prefab, right? What you're doing is making a clone and then setting values on the object that you cloned, rather than on the clone. You need a reference to the clone, which is...

View Article


Answer by William_Lee_Sims

Do two things: 1) Remove the yield statement from your Start() function. 2) Assign your "Instantiate(...)" to another variable like "var pClone = Instantiate...". Then use that variable to do the rest:...

View Article

Browsing latest articles
Browse All 4 View Live


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