PNG files look ugly

I have a png that I am using for a GUITexture, the .png is 1024x768 pixels and looks pretty nice. When I import it for use in Unity it looks disgusting, I have fiddled with the scale and pixel inset properties but have had no luck...

What is causing this and how can I fix it?

Thanks

If you're using a texture as GUI element and it looks like the resolution is much smaller than your actual image, the problem could be the mipmap settings of the importer.

-> In the import dialogue, set the texture type to GUI (this disables mipmap generation, sets the wrap mode to clamp and disables the internal resampling to a power of two size ... as far as I've seen ;-))

greetings, vv

Click on the actual imported image file in your project asset viewer, look at the inspector, change the filter mode to Point instead of Bilinear which is typically the default. Any time you import pixel art like that, use the point filter or it’ll be filtered with an ugly anti-aliased artifacting.

For one, you should always try using powers of 2 when making images. For instance: 64x64, 128x128, 512x512, 512x1024, etc. You want both your height and width values to be powers of 2.

So first thing I would recommend is to resize your .png so that the height is not 768 but rather something like 512 or 1024.

I have no idea if this is causing it to look "disgusting" (and we would need more info, such as a screenshot, to give you a good answer on it) -- but my first response would be to try resizing the texture first.

@thenegaverse your solutions cured my problem with pixel art type graphics