Quantcast
Channel: Questions in topic: "parenting"
Viewing all articles
Browse latest Browse all 302

Insantiate object to parent without changing scale?

$
0
0
I'm using the following line in my script to instantiate an object from an array at the position of the spawner. I want to set the spawned object's parent to the spawner. The line below works but the spawned objects scales to the parents scale. How can I set the parent without changing the spawned objects scale? GameObject clone = Instantiate(sculpturesToPickFrom[randomIndex], transform.position, Quaternion.identity, transform.parent);

Viewing all articles
Browse latest Browse all 302

Trending Articles



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