Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

How can a button recognize a right click in script?

Discussion in 'UGUI & TextMesh Pro' started by Sander1991, Aug 27, 2014.

  1. Sander1991

    Sander1991

    Joined:
    Aug 25, 2014
    Posts:
    162
    I know the OnPointerDown(PointerEventData data) Function. But it only works with left click. Does someone know how it works with right click?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    It's a bug, we are aware of it and will be fixing it.