I want to instantiate an object inside my enemy gameobject, and to position them relative to the parent, also to use the parent’s scale.
So I use:
var exp = Instantiate(Resources.Load("Explosion", GameObject), Vector3(transform.position.x+3,1,transform.position.z+1), transform.rotation);
exp.transform.parent = gameObject.transform;
…this creates the object inside the enemy but is really far away, as the enemy’s scale is less than 1.