Search Unity

Adding Tooltips?

Discussion in 'Getting Started' started by DiogoCosta, Feb 15, 2015.

  1. DiogoCosta

    DiogoCosta

    Joined:
    Feb 15, 2015
    Posts:
    12
    I'm fairly new to Unity 3d and I'm having trouble adding tooltips for hovering over objects such as buttons. Can anyone help with creating tooltips?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    (I'm going to assume you are working with Unity 4.6 and the UI system)

    Probably the easiest way is to add an EventTrigger component. Add a new listener for OnPointerEnter and OnPointerExit. Drag in the tool tip GameObject. Select the function GameObject.SetActive, and pass in true and false as required.

    Note this might not be the best way to add tool tips, but its probably the fastest to get running while you are new.
     
  3. DiogoCosta

    DiogoCosta

    Joined:
    Feb 15, 2015
    Posts:
    12
    OK Thanks!