- Home /
Custom GUI Button is Black
I made a custom GUI button using GIMP. The button is originally yellow with an orange border, but when I use it in unity, it becomes completely black. I am new to making custom GUI skins so I have no idea where I went wrong. How do I get my button to become yellow with an orange border? Thanks!
Answer by Anti-Social Fred · Jul 14, 2014 at 06:11 PM
If you're using the default GUI (OnGUI()) then there are a couple of reasons this could be happening. I don't think this will hit them all, but all of my problems with this resulted from one of the following:
Import the texture as a GUI. To do this, click on the image and go to "Texture Type -> GUI"
Also, check all of the colors on the used GUIStyle. Make sure that there aren't any colors that are black unless you specifically want it that way.
Turns out that adding GUI.color = Color.black; made everything black. Before it only made my font black. Thanks!
Your answer
Follow this Question
Related Questions
JavaScript GUI.Window OverPowers GUI.Button 1 Answer
Unity GUI Button Options 0 Answers
Custom-made GUI Textfield 1 Answer
Screenshot certain layers so it doesn't show GUI Button on the image?? 0 Answers
GUI.Button click trigger game object 1 Answer