void OnMouseEnter() { tooltip.ShowOrHideTooltip(); text = tooltip.GetComponentInChildren <Text>(); text.text = tooltipText.Replace("\\n", "\n"); }
/// <summary> /// Set the text of the tooltip /// </summary> /// <param name="tip">Tooltip text</param> public void UpdateTooltip(string tip) { Instance.GetComponentInChildren <Text>().text = tip; }