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