Texture to GUI.Button

Hello everyone my problem is i want to add a texture to gui.button but i can’t figure out how to do this.

void OnGUI () 

	{
   
		if(GUI.Button(new Rect(Screen.width/2.5f,Screen.height/6,Screen.width/4,Screen.height/5), "Start Game"))
		{
			Application.LoadLevel("Level1");
		}

This is my code i tried Texture and Texture2D and still don’t know how

                                                           Thanks for helps.

hey you can try this :

public var GUIStyle buttonStyle ;

void OnGUI () 
{
    if(GUI.Button(new Rect(Screen.width/2.5f,Screen.height/6,Screen.width/4,Screen.height/5), "Start Game" , buttonStyle))
    {
        Application.LoadLevel("Level1");
    }
}

From inspector , you can assign texture to this buttonStyle.

For more info you can see here.

You can also just draw a GUI.DrawTexture right beanath (if the button is transparent) or above the button. If you use unique textures for each button, this might be the best way. Otherwise, if all button graphics are the same but have different texts in them, you might want to use Ekta Metha D.s suggestion of using custom GUI Styles.