diff --git a/README.md b/README.md
index fdf7f53..0fe94dc 100644
--- a/README.md
+++ b/README.md
@@ -556,9 +556,16 @@ public Transform button;
```
```cs
+// targetY is the distance from the start position along the Y axis
ScreenManager.ShowTooltip(text: "Tooltip Text", worldPosition: button.position, targetY: 100f);
```
+Hide the tooltip
+
+```cs
+ScreenManager.HideTooltip();
+```
+
9. Other useful methods of ScreenManager
9.1. Top
diff --git a/SSv5/Assets/ThirdParties/SS/Screen/Scripts/ScreenManager.cs b/SSv5/Assets/ThirdParties/SS/Screen/Scripts/ScreenManager.cs
index 68a3d36..f9fafe3 100644
--- a/SSv5/Assets/ThirdParties/SS/Screen/Scripts/ScreenManager.cs
+++ b/SSv5/Assets/ThirdParties/SS/Screen/Scripts/ScreenManager.cs
@@ -464,6 +464,17 @@ public static void ShowTooltip(string text, Vector3 worldPosition, float targetY
m_Instance.LoadAndShowTooltip(text, worldPosition, targetY);
}
+
+ ///
+ /// Hide Tooltip
+ ///
+ public static void HideTooltip()
+ {
+ if (m_Instance == null)
+ return;
+
+ m_Instance.HideTooltipImmediately();
+ }
#endregion
#region Unity Functions
@@ -1215,5 +1226,13 @@ private void LoadAndShowTooltip(string text, Vector3 worldPosition, float target
CreateAndShowTooltip(tooltipPrefab, text, worldPosition, targetY);
#endif
}
+
+ private void HideTooltipImmediately()
+ {
+ if (m_Tooltip != null)
+ {
+ m_Tooltip.HideToolTip();
+ }
+ }
#endregion
}
\ No newline at end of file