pass a transform to a prefab

I am making a rocket launcher in which I select an object (its Transform component) and would like to pass the Transform to the rockets I launch (these are prefabs) in order to guide them to the position of the object, how could I pass the Transform component of the selection to these prefabs?

Vector 3s. Pass Vector3 pos, Vector3 rot (Euler angles), and Vector3 size for a full transform component. However, it looks like your example you would only need pos. However depending on your example, why bother passing it at all? If you have the game object selected have this:

void UpdateTarget () {
  for(int i=0;i<rockets.Lenght;i++) {
    rockets*.targetpos = selected.transform.position;*

}
}
Would that work? selected is the gameObject that you have clicked on, rockets is an array of the instantiated rocket prefabs “or GameObject.FindObjectsByType();” targetpos is a Vecotor3 that your targets point at as they move forward. Assuming you don’t want them to instantly jerk over facing them, just lerp a point towards. Plenty of examples of that. Then the rockets would slowly adjust their projectory as they fly forward.