How can I attach a gameobject to another without changing its scale.

Im using a grenade that can stick to certain enemies, problem is sometimes the grenade scale gets messed up by the enemy scale, is there to attach a gameobject to another without missing its scale?

Right now im using some code like this:

onCollisionEnter(Collision col){
 grenade.transform.parent=col.collider.transform;
}

Try setting grenade.transform.localScale = Vector3.one after changing its parent. Not sure if that’ll work.

If that fails, you can set the scale to the inverse of the parent object -

grenade.transform.localScale.x = 1.0 / parent.transform.localScale.x;

Same for Y and Z.