tiling portion of texture

Can we tile only portion of texture. right now i have 512128 texture and i want to tile the ground (at the beginning) 220 times

79941-1.jpg

BR

3D objects read a kind of map embedded into them that tells them what area of the texture file that is assigned to look at, in some cases for different parts of the object. These are called UV’s, and I don’t think it’s possible to edit UV mappings within unity, correct me if I’m wrong. If you want to use part of your texture for an entire object, the easiest solution would be to split the texture into the pieces you want and then use that piece!

Quick and bad solution: Create an empty game object. Add a quad as a child of that game object. Add texture to material and tile it to have the ground part in the quad. Duplicate quad 39 times and position quads in 2 x 20 grid.

You could write your own shader, that is quite much work and reading if you haven’t done that before.

Both of these kind of ruin the idea of texture atlasing, if you use atlas to reduce draw calls because you would have to have different materials or shaders with different tiling for different objects (correct me if I’m wrong, I’m quite beginner with shaders).

You can do it with script, setting the UV coordinates to vertices but your model would need to have at least 321 vertices (which you could also add via script). You could do the same thing in 3D modelling software, which is much faster and easier (at least when you have something more complicated than simple plane) but you anyway need 321 vertices instead of 2*2 to produce that one piece of ground.