Texture, nearest neighbour filtering?

So, quite a simple thing to do, I just can not for the love of me find where.

I’ve got a very small pixel art texture, default texture filtering causes a blurry mess, where would I change the texture filtering to nearest neighbour? I can not find any such options within the imported texture itself.

1 Like

Was looking for it too… It’s sort of hidden here in the texture tab under advanced settings:

1 Like

There we go, thanks a bunch!

1 Like

mm interesting, thanks!

1 Like

How do I set this in C++ code? I used UTexture2D::CreateTransient() to create a texture in C++ code. So how do I either tell my C++ texture to :“use nearest” or at least tell it to copy the settings (including filter = nearest) from a texture that I setup in the editor?

1 Like

Actually I found it. UTexture2D’s parent class UTexture has Filter. So…

tex->Filter = TextureFilter::TF_Nearest;

2 Likes

If anyone lands here realizing the menu changed,
the new way seems to be to set the Texture Group to “2D Pixels” under Level of Detail.

308226-screenshot-1.png

5 Likes

WORK!

See how my game was with the default filter:


Now with the “Nearest” filter:
2023-01-17_12-25-329
I was looking for the solution for 2D games, this topic helped a lot! In addition, the same fix applies to HUDs in Pixel Art.