How do I make a custom tiling material function (that always tiles in a same size even when resizing mesh) for megascans surfaces?

How would I go about creating a custom tiling material function that always tiles normally no matter if I resize the mesh? I tried but every time I did, it would default to the default surface material?


In this picture it is connected to my custom stuff. When it is, this is how the stone wall looks like:

That is the default material for megascans surfaces. It is supposed to look like this but with tiling:

And these are the pictures of my mf tiling function:

Here, I did not know what to plug into the texture sample’s UVs.

Here is the default mf tiling function (with added absolute world position to tile floors):

Absolute world position does what I want but only for floors, not for walls.

Any help is appreciated!