Search Unity

How to scripting on new GUI system 4.6beta ?

Discussion in 'Scripting' started by mtGameDev, Oct 1, 2014.

  1. mtGameDev

    mtGameDev

    Joined:
    Oct 19, 2012
    Posts:
    89
    i like new gui system on 4.6 beta.
    but im a little confused ...
    how i can get another events on button ?
    in default there is only OnClick() event on Button script.
    But i want to access on : OnMouseDown or OnMouseUp ?
     
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    Add an EventTrigger component - you can then add the extra events there.
     
  3. mtGameDev

    mtGameDev

    Joined:
    Oct 19, 2012
    Posts:
    89
    Thanx a lot my friend.