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?



What you could do is try using a guistyle.

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

//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.