Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 45de232

Browse files
Patch Tooltip
1 parent 0ab5e6e commit 45de232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtime/Scripts/ToolTips/ToolTip.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ public void Awake()
121121
this.gameObject.SetActive(false);
122122
}
123123

124+
public void SetTooltip(string ttext)
125+
{
126+
SetTooltip(ttext, transform.position);
127+
}
128+
124129
//Call this function externally to set the text of the template and activate the tooltip
125130
public void SetTooltip(string ttext, Vector3 basePos, bool refreshCanvasesBeforeGetSize = false)
126131
{

0 commit comments

Comments
 (0)