Specific Texture Tiling

I have this texture called “Chainfence”. The fences I made all have different lengths, and so up to now I’ve been making multiple materials with the same texture to compensate for the tiling of the textures. Can i do something that takes the size of the fence and tiles the texture for that specific object?

You could look at Material scripting which has some setScale and setOffset functions. Although I have to say that the way you’re going about this may be detremental to your games’ Graphics Performance.