Please help in GUI. Thanks!!!

public GUITexture shootButton;

if(GUI.Button(new Rect(1000, Screen.height - 80,120,30),shootButton))

How do I replace the newRect with my own GUI texture and alsoI want the gui texture in the bottom right of the screen exactly. It should be a button. Thanks.

You may use GUIStyle here is a reference link:

var shootButton:Texture2D;

function OnGUI()
{
GUI.DrawTexture(Rect(Screen.width - 125,Screen.height-35,120,30),shootButton);
}

after these codes you have to check if the mouse is in the Texture Rect but u suppose you first take a tour in the unity’s manual and scripting reference