UV Texture mapping to 3d model by script in unity

I have served for this thread for many days, but it seems not what I want. I want to map texture to 3d model using script. Could any one help me for sample script to map simple 3d object? It would be please.

Example 2 here:

shows how vertex attributes can be modified in script. I guess you need to edit the uv array.

1 Like