Is there a way to tile a texture procedurally?

I have a image texture, and I need to tile them procedurally with some offset in every rows. Can I do this procedurally with the nodes. Sry I am new to unreal. It will be much appreciated if you help me out.

You can do it in the material editor, no c++ needed.

I came up with this:

This will offset each row by some amount depending on the division denominator (5 in this case).

wow, thanku that works.
I also have another question, is there a way to create checker tiling with 2 different texture sample.

I not sure whether i can ask a different question in the reply section. But thanks for the solution , it helped a lot.

Thank u , i learned a lot!!

Something like this seems to work: