- Home /
How to set how unity apply the textures
I'm changing texture and size of a gameobject in runtime (size with lerp) but when I change texture, it sees well from one side, but upside in the other side. The gameobject is a simple cube with transparency. I'm changing texture and not material, I dont know if this affect
Thanks in advance. Sorry if my english is bad
Sounds like you need to correct the UV mapping on the model.
Here is how to set the 'texture' of each side of the built-in cube (uses UVs as mentioned by @tanoshimi):
http://answers.unity3d.com/questions/542787/change-texture-of-cube-sides.html
so... I need to use blender? And it works too when I change the size with lerp? maybe unity should have an option to change one face texture, I remember I had this option editing CS maps.
The Unity editor doesn't directly support changing UVs - you can do it with code. You can even code an Editor script to allow changing UVs in the editor much like you can in map editors like Hammer / GED, but that's pretty darn complicated.
Your best bet is using a cube you create yourself to have the UVs you want using a program like Blender. And yes, UV's have nothing to do with scale, so the scale won't affect them.