Search Results for

    Show / Hide Table of Contents

    Class HoverTip

    Enables game objects to have text displayed providing useful information when hovered over. Written by following this tutorial.

    Inheritance
    Object
    HoverTip
    Implements
    IPointerEnterHandler
    IPointerExitHandler
    Namespace: Global
    Assembly: cs.temp.dll.dll
    Syntax
    public class HoverTip : MonoBehaviour
    Remarks

    This custom component is given to user interface game object, and is given an associated text to be displayed when the object is hovered over.

    The IPointerEnterHandler and IPointerExitHandler are used to detect when the mouse enter and exits the gameobject associated with the HoverTip instance.

    Fields

    tipToShow

    The tip text to be displayed in the tip window for the associated object

    Declaration
    public string tipToShow
    Field Value
    Type Description
    String

    Methods

    OnPointerEnter(PointerEventData)

    Called when the associated gameobject is entered.

    Declaration
    public void OnPointerEnter(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData

    Provides detailed information about the pointer enter event.

    OnPointerExit(PointerEventData)

    Called when the associated gameobject is exited.

    Declaration
    public void OnPointerExit(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData

    Provides detailed information about the pointer exit event.

    Implements

    IPointerEnterHandler
    IPointerExitHandler
    In This Article
    Back to top Project documentation