Variable Length Rope - Elevator cables

Hi guys.

I am currently trying to implement elevator cables in our game and was wondering if anyone had any advice on what the best method for this could be.

The cables extend and retract as the elevator moves up and down so the texturing on the cables must be able to tile and not look stretched at any point.

We have tested using a skinned mesh for the ropes, however once they are stretched the texture is also stretched and I can see no way to access a scale for the ropes to be able to modify the uv values of the texture to allow it to tile (i.e. if the rope geometry doubles in length then the uv range would need to double from 0 → 1 to 0 → 2 to stop the texture from stretching).

To be honest I have no idea where to even start looking to solve this issue and would appreciate any advice or guidance.

Thanks.

You could maybe use a trail renderer but I think that only does flat lines, there are systems on the Asset Store that could help you, MegaShapes is a full spline to mesh system that allows you to extrude along splines, even has a twisted rope option, and in beta at the moment is a full rope and chain system.

You can modify the uv values of the texture easily.