Loading a Model

Hello all, I have my GUI screen almost set up, everything is ready except one thing. I want you to be able to press a button and for it to display a 3d model, in my case a soldier so you can pick and look at different models. I know you have to do

if(GUI.Button(Rect(1150,790,100,50), "Load"))
    (Insert stuff here)

Next time, just do a google search :wink: (you can clearly see I copied it from the reference)


var 3dModel : Transform;

if(GUI.Button(Rect(1150,790,100,50), "Load";))

    var theClonedModel : Transform;
    theClonedModel = Instantiate(3dModel,
    transform.position, transform.rotation);

Hope it helps.