Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Instantiate a Prefab as child

$
0
0
Hello, I try to Instantiate a Weapon as an Child of a Empty Gameobject which is in Position with the Right Hand of my Model ,it works well but the Position of the Weapons are not correct ... GameObject w = Instantiate(ca.WeaponMesh[_weaponIndex],_pc.WeaponMount.transform.position,_pc.WeaponMount.transform.rotation)as GameObject; w.transform.parent = _pc.WeaponMount.transform; What i doinig wrong ???

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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