public GameObject sourceObject;
// drop your object from inspector to this slot.
// then later
GameObject t = (GameObject)Instantiate(sourceObject, transform.position, transform.rotation);
↧