Mesh repeating along x or y axis instead of scaling along the axis

I remember seeing a blueprint that basically added more copies of the mesh as you increased the the x or y scale of the object.

I want to create a blueprint / mesh that I can easily scale along one axis to build walls. I hope this makes sense.

Any idea how I could do this?