- Home /
Jagged white edges around partly transparent textures in GUI
We have an issue where we are using partly transparent textures for the GUI, and when they are displayed in the game(via OnGUI), they have jagged white edges.
Here's an example of what we're seeing:
Anyone know why this is happening?
Answer by Jessy · Jan 28, 2011 at 11:48 PM
Answer by Mike 3 · Jan 28, 2011 at 11:47 PM
Try turning off mipmapping, that usually helps, as otherwise the mipmapped version has a slightly larger area than the original, bleeding through to the white surroundings
I don't consider this a good solution; the graphics should be made so that mipmapping can be enabled.
I tend to favour the other way around while prototyping at any rate - if it's possible to keep the original without having to run fairly destructive set of actions every time you save, it's a good thing
I don't see how it's destructive. You're going to need an alpha channel in the end. Use a solid colored background that isn't white if you want something fast.
Your answer
Follow this Question
Related Questions
Putting a .png overlay onto a GUI image 1 Answer
Unity 3D UI and Standard Transparent material 0 Answers
Ignore transparent areas of sprites in uGUI 0 Answers
Can't remove texture background 1 Answer
Quick GUI Texture Question 0 Answers