Instantiate with the prefab's existing Transform

The Instantiate functions require passing in a position and rotation. I want to use the transform that is with the prefab. I’m using a factory pattern to change the look and feel of base prefab at runtime so I don’t break the prefab connections.

Thanks.

Try:

public Transform prefab;

    void Update(){
    Instantiate(prefab, transform.position, Quaternion.identity);
    }

Attach the prefab into the script.