Search Unity

Unity UI How to make tooltips for button?

Discussion in 'UGUI & TextMesh Pro' started by Xhitman, Oct 19, 2018.

  1. Xhitman

    Xhitman

    Joined:
    Oct 30, 2015
    Posts:
    452
    I want to show tooltips whenever player mouse over button.

    I put a script on button with OnMouseEnter(), but not work.
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    uGUI doesn't use these old message broadcasts via Method-Name anymore AFAIK.

    Instead add an EventTrigger component to your button and add Pointer Enter and Pointer Exit events to it. There you can add methods which should be called on these events.