- Home /
Change UV texture on certain tiles?
Hello everyone.
I am currently using Supersplines to dynamically create a path/mesh which is a plane. I am fairly inexperienced when it comes to UV coordinates. My desired end result is the square that I photo-shopped in the bottom left. I would like to override my "square" texture with something else for just a single uV tile. This way I can create customized squares for different game features. It may be easier than creating an overlapping mesh which will add more draw calls. I am wondering if Unity has any functions that would allow me to get/change this information.
http://i.imgur.com/doGw1gG.jpg
I have found a similar question asked years ago. http://answers.unity3d.com/questions/293607/tiling-uv-mapping.html
Here is the code that is contained in the "SplineMesh" class that came with SuperSplines which is where the UV settings are in the inspector. It may be of interest if I can implement something in there? http://pastebin.com/Wh7aPk3r