Search Unity

GUI.DrawTexture and MouseOver events

Discussion in 'Scripting' started by dashmasterful, Nov 10, 2010.

  1. dashmasterful

    dashmasterful

    Joined:
    Feb 3, 2010
    Posts:
    166
    I'm drawing elements to the screen like so:
    GUI.DrawTexture(new Rect(tx,ty,mapSize,mapSize),background);

    is there a simple way to add mouseover and mouseclick events to the Textures that I'm drawing
     
  2. McRain

    McRain

    Joined:
    Mar 26, 2009
    Posts:
    138