EXTREMELY basic button question.

I realise that this is a bit of a stupid question but i've been googling it for the past 20 mins and I still can't find the answer. I have a GUITexture on my iPhone app and I want to detect a touch of it. How do I do this?

You just use the standard OnMouseEnter/Exit/Down/Up event functions:

function OnMouseDown()
{
    //do stuff
}

Edit (since you're on iPhone):

http://answers.unity3d.com/questions/2807/simple-touch-command-on-iphone

The question and answer there should be enough to get you going

You'll probably need to add a trigger collider to the GUITexture (and may want to use collider.Raycast instead of Physics.Raycast)

Usually when you have a GUI texture it wont work it will just appear on your screen so what i do is put a text box, and that usually works and create a script for the button for it to highlight and stuff whatever else you want it to do. which is in the same category in the tool bar with GUI text.