Quantcast
Channel: Latest Questions by Wrymnn
Viewing all articles
Browse latest Browse all 131

Transform.parent changes rotation/position 2D

$
0
0
Hi I am creating many 2D objects and I need them to be parent of the main Object_Spawner let`s call it so the hierarchy is clean. GameObject planet = Instantiate(planet_GameObject, pos, Quaternion.identity) as GameObject; planet.transform.parent = gameObject.transform; But after creating those objects (Sprites) I don`t see them. They change their scale to 0,0,0 after I transform/attach them to their parent. Please do you know how to fix this?

Viewing all articles
Browse latest Browse all 131

Trending Articles



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