Gui button still visible when texture added.

Hi, im trying to add a texture to a gui button.

I’m using the following code:

    public Texture2D image;	
    
    void OnGUI() {
            if( GUI.Button(new Rect(5, 70, 70, 70), image) ) {
            do stuff();
            }

But the grey button is still visible, how do I hide it and only have the texture?

[24367-screen+shot+2014-03-27+at+15.14.13.png|24367]

Thanks!

What you could do is try using a guistyle.

public GUIStyle mystyle;
void OnGUI()
{
 if(GUI.Button(new Rect(5, 70, 70, 70), ".",mystyle))
 {
   DoStuff();
 }
}

//When you use the guistyle you have to put on your texture for the button and just make the text color black and the alpha on 0. With the GUIStyle you wont be able to see the grey button. If you have any questions on how to do this just ask me, and I'll help as best I can.