- Home /
Get rid of gradient in Textfield and Buttons
I'm setting up a custom GUISkin and have gone through and setup the background and font. Everything looks fine except for a strange grey gradient that is appearing along the sides of the textfield and button. I've looked through all of the settings in GUISkin and haven't been able to find anywhere that I can get rid of them. Here is what it looks like:
Is it possible to get rid of those gradients?
Answer by Jeff-Kesselman · Jun 23, 2014 at 03:54 PM
The gradient is in your art.
My guess is that the edges of your art are using alpha anti-aliasing.
Accepting this answer, because it is correct, but just want to share the work around that I found for it. I made the border wider than what the fixed pixels were (so in the example above with a 1 pixel border I set the border to 3). That effectively made the anti-aliasing on the same color so it removed the odd fading that looks like a gradient.
Your answer

Follow this Question
Related Questions
GUILayout.button hover texture not changing immediately 2 Answers
Append multiple textfields to custom editor on button click 0 Answers
GUI Text as a Button? 1 Answer
click the button and text field appears below the button 1 Answer
How can I put two GUISkins on two different buttons in one script? 1 Answer