Remove GUI Btn Bkg

Hi,
I have been going over the GUI documents, specifically I am looking for the element that determines the background of say a gui button. At default the background is a slightly opaque black box. I want it to be nothing as I want only my image to be seen. What variable of the GUI must I access to manipulate this?

(copy/paste from another post)
You have to create a custom style to get rid of the default rounded button borders.
Just add something like this somewhere in your init :

GUIStyle style = new GUIStyle();

And when you want to use your button, use this style :

bool bClic = GUI.Button(myrect, mytexture, style);

:smile:

Sorry,
I had not tried it.
I was thinking that I needed “guiStyle” var to then have itself defined in all types of categories. ie background, skin and I could not find the relevant variables.

But this works great. Thanks for sticking with me.

Ren