Hello,

I am generating a mesh in Curvy Generator using Volume Mesh.

I would like to know how many repeats of the material texture I have assigned to the generated mesh.

I know that the above would probably be about 6.5 repeats, but I am unable to calculate it properly.

The total length of the path is 240m, the total length of the shape is 19.14484m, and the texture is 512x512, but I don't know what I am missing in calculating 6.5 from this.

I have selected Scale V for Keep Aspect in the Volume Mesh material.

UV Scale is X=1,Y=1.

If you have any hints that might help us in our calculations, I would appreciate it if you could let me know.

(Aspect ratios used internally by Curvy Spline, etc)

Thank you in advance.

Edit:

Version is Curvy Splines 8.7.1.

The reason I am asking this question is because I am changing the mainTextureOffset of the material in a script to achieve UV scrolling.

I ask because I need to match the UV scrolling speed with the scrolling speed in Unity's 3D space, and this calculation is necessary in the process.

I am generating a mesh in Curvy Generator using Volume Mesh.

I would like to know how many repeats of the material texture I have assigned to the generated mesh.

I know that the above would probably be about 6.5 repeats, but I am unable to calculate it properly.

The total length of the path is 240m, the total length of the shape is 19.14484m, and the texture is 512x512, but I don't know what I am missing in calculating 6.5 from this.

I have selected Scale V for Keep Aspect in the Volume Mesh material.

UV Scale is X=1,Y=1.

If you have any hints that might help us in our calculations, I would appreciate it if you could let me know.

(Aspect ratios used internally by Curvy Spline, etc)

Thank you in advance.

Edit:

Version is Curvy Splines 8.7.1.

The reason I am asking this question is because I am changing the mainTextureOffset of the material in a script to achieve UV scrolling.

I ask because I need to match the UV scrolling speed with the scrolling speed in Unity's 3D space, and this calculation is necessary in the process.