From 45de2322c426906ca8464f12ffe429004b2cee19 Mon Sep 17 00:00:00 2001 From: "Simon (darkside) Jackson" Date: Tue, 27 Oct 2020 01:16:58 +0000 Subject: [PATCH] Patch Tooltip --- Runtime/Scripts/ToolTips/ToolTip.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/Scripts/ToolTips/ToolTip.cs b/Runtime/Scripts/ToolTips/ToolTip.cs index 01eae89..1800028 100644 --- a/Runtime/Scripts/ToolTips/ToolTip.cs +++ b/Runtime/Scripts/ToolTips/ToolTip.cs @@ -121,6 +121,11 @@ namespace UnityEngine.UI.Extensions this.gameObject.SetActive(false); } + public void SetTooltip(string ttext) + { + SetTooltip(ttext, transform.position); + } + //Call this function externally to set the text of the template and activate the tooltip public void SetTooltip(string ttext, Vector3 basePos, bool refreshCanvasesBeforeGetSize = false) {