Texture swap and UV

I was wanting to know how texture swapping worked and how Unity does it. I also wanted to know if Unity supported multiple UVs per model.

Do you mean “how does one swap the texture of an object?” The following will do it.

var newTexture : Texture;
object.renderer.material.mainTexture = newTexture;

I’m not sure about the second question.

Unity supports both multipe uv sets and multiple materials per mesh.

Can you explain how to do multiple UVs. I have not found anything on how to do this. Thanks for the reply

You have to have an modelling application that does this. Like Maya, or cheetah3d. Or Blender if you are patient.

AC

I’m working with Mumm on this problem and we are currently using a cube primitive made in Maya '08 which has 3 UV sets on it to try and figure out the problem.

Rightclick over your object, go UV linking, then fiddle with whats assigned to what in the “UVcentric” relationship editor.

Selecting from one side and selecting from the other is how you assign textures to uv sets.
HTH
AC