How to hold an objects transform in a variable and than instantiate another object at it's point?

I want to make it so that I can hold an objects Tranform(x,y,z) and than instantiate an object at it’s point. How could I do this. I know how to instantiate the object ,but it only instatiates at the mouses position at the moment. Can someone help?

I think you are asking for:

public Vector3 PositionWhereYouWantToGetYourObjectInstantiated;

as robertbu says:


you can pass the cordinates of PositionWhereYouWantToGetYourObjectInstantiated in the inspector