Pixel perfect GUI elements

I’m trying to put some buttons up using the Unity GUI. I have it working as I’d hoped, except that the buttons aren’t pixel perfect. They’re getting blurred a bit as if they had been scaled, but they aren’t.

445206--15487--$buttons.jpg

Here’s my code:

GUI.DrawTexture(Rect((Screen.width - 230),(Screen.height - 110),50,50), test_button, ScaleMode.StretchToFill, true, 0);

The images are 50x50 and I"m printing them to the screen at 50x50…

Any ideas on what I’m doing wrong would be greatly appreciated!

Set “non power of 2” to none, turn off mipmaps, and turn off compression. Using the GUI setting for textures will do the first two automatically.

–Eric

That worked, thanks!