Texturing help please

Hey I know this is ue4 but i thought i could find help here.

This should be relatively easy but I cant figure it out. It feels like a riddle (it should be a simple answer).

The attached image shows a 1024X1024 texture with two images within.
A brick texture and some sort of picket fence. Now, from what I know about textures to tile is they need to fit the entire 1024x1024 image.
But I’m seeing people use images like this where they have tillable textures within tillable textures.
The red lines and faded fence symbolise what I want it to do, lets say on a continues plane.

How do I replicate this? Can i do it within maya?