Hi all I've loaded a 3ds mesh file. Now I'd like to load its textures. For instance myMesh.3ds refers to 2 texturefiles named toto1.jpg and toto2.jpg. Supposing the 2 jpg file are available in the same folder. Thk you
oh well : Code (CSharp): var Mymesh = new GameObject(); Mymesh.AddComponent<MeshFilter>(); Mymesh.AddComponent<MeshRenderer>(); MyMesh.GetComponent<MeshFilter>().mesh =the_mesh_loaded_previously; MyMesh.GetComponent<Renderer>().material.mainTexture = (Texture2D)Resources.Load("toto1", typeof(Texture2D));