How can I prevent texture stretching while scaling a mesh?

I’ve tried following this screenshot, however the texture doesn’t quite seem to tile the way I’d expect it to.
image
This is how it looks with a Static Mesh cube at scale 1,1,1
When I scale it up along the Y axis, this is how it looks:


It also behaves weirdly on the sides:
image
The top and bottom of the cube tile exactly as expected.

This is how it looks, when scaling the cube up on the X axis:
image
Now the left and right sides of the cube tile properly alongside the top and bottom, but the front and back faces don’t.

Finally, when scaling the cube up on the Z axis, the front and back faces tile properly alongside the top and bottom, but the left and right faces don’t.


Did I just set up the Material BP incorrectly?


(Spreading the nodes out, so it’s easier to see what connects to what)