UVW Mapping at runtime

I would like to do something like this:

Basically I would like to apply a cylindrical mapping type (in the photo is not cylindrical but is fine for me) to a mesh. This, however, not only for a cube but for each mesh to which apply a script.
I can do it at runtime?

Yes, use the Mesh class and compute mesh.uv as appropriate for each vertex.

–Eric

Can i copy the uv mapping from a basic cylinder and assign it to a complex mesh?

If they had the same number of vertices, yes, though it wouldn’t look right unless the vertices were in the proper order, which is unlikely.

–Eric

All that I need for my asset (Liquidum) where there is also an effect of “water down” on a mesh …
For now I have make this tutorial where the user must apply the mapping by hand on a modelling program …

This is what I would do at runtime, but do not think I could do it.