Hello,
I have a GUI button that has a texture instead of text. Is there a way to get rid of the typical button border:
As you can see - there is a border going around the texture.
Cheers folks!
Hello,
I have a GUI button that has a texture instead of text. Is there a way to get rid of the typical button border:
As you can see - there is a border going around the texture.
Cheers folks!
Like Xedfire said, e.g.
GUILayout.Button(myTexture,"label");
would be a way.
Posting this for others, took me forever to find the answer for this. You have to add a blank string at the end, and the button background will go away.
GUI.Button(new rect(10,10,100,100),myTexture,“”)