Hello, how can I make something happen when my GUITexture is clicked? My GUITexture is “achieved” by this script which work’s fine btw
public Texture2D background;
int theHeight = 50;
int theWidth = 200;
void OnGUI() {
GUI.DrawTexture(new Rect(Screen.width / 2 - (theWidth / 2), Screen.height - 50, theWidth, theHeight), background);
}
Thanks, Andreas