Adding model in runtime

I have some models from warcraft3 converted into 3ds and I need to assing it to mine default object (cube with collider and mesh). How can I do that?

P.S.: C# examples are welcome.

http://unity3d.com/support/documentation/ScriptReference/Resources.Load.html

To be honest, I have really no idea what you are trying to do here, but I’ll give it a bash. (Also, I’m terrible with C#, so I’ll give you an example in JScript and you can convert … that is if it has anything to with what you want to do):

function Start () {
var mesh : Mesh = GetComponent(MeshFilter).mesh;
mesh = Resources.Load("foo"); //You will need to replace foo with the name of your mesh
}

I think that should work. Needs to be assigned to your ‘default object’. Created on fly so I can’t be sure if it will work!

Klep