/// <summary> /// Called when the mouse enters a 3d model with a collider in scene. /// </summary> private void OnMouseEnter() { //Show tooltip instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground); }
/// <summary> /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time. /// </summary> protected virtual void Start() { radialMenu = UIUtility.Find <RadialMenu> (instanceName); }
/// <summary> /// Called when the mouse pointer starts hovering the ui element. /// </summary> /// <param name="eventData">Event data.</param> public void OnPointerEnter(PointerEventData eventData) { //Show tooltip instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground); }
public virtual void Show(MessageOptions settings, UnityAction <string> result, params string[] buttons) { Show(settings.title, UIUtility.ColorString(settings.text, settings.color), settings.icon, result, buttons); }