I have this prefab with this transform:
And then using this code to create a clone (the prefab is assigned to a public property of a script, which I assign using the editor, which is the e.Weapon):
Instantiate(e.Weapon, new Vector3(0f, 0f, 0f), Quaternion.identity, rightHand.transform);
I am parenting it to my character's right hand. But whenever the clone gets created, it has different position than the one I have in my code. It appears like this:
Any idea why this is happening?