Texture sprite goes crazy when I repeat it

I’m trying to make a grid, I have a texture of grid like the following:

I put a repeat on it, and attached it to a plane.
Then I changed the UV to 50, for testing purpose.
It works, however when I zoom out… I get something else
And In game I get this result:


In Unreal Engine it doesn’t happen though, so I think there is a solution to that. Thanks for the helpers!

You said that you “put a repeat on it”, but this is looks similar to what you get when the texture is set to “Clamp” in its import settings. If you are 100% sure you correctly set it to “Repeat” and applied it, then only your used shader yould still mess this up.