修复Overlay模式下不显示Tooltip的问题

This commit is contained in:
monitor1394
2019-12-16 09:44:52 +08:00
parent 78cf3dafa7
commit be0bdd0248
4 changed files with 7 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
# 更新日志 # 更新日志
* (2019.12.16) 修复`Overlay`模式下不显示`Tooltip`的问题
* (2019.12.15) 增加`Title``TextStyle`支持 * (2019.12.15) 增加`Title``TextStyle`支持
* (2019.12.11) 修复`Legend`都隐藏时`Value轴`还显示数值的问题 * (2019.12.11) 修复`Legend`都隐藏时`Value轴`还显示数值的问题
* (2019.12.11) 修复`Series->Data->Size`重置为0后设置无效的问题 * (2019.12.11) 修复`Series->Data->Size`重置为0后设置无效的问题

View File

@@ -459,8 +459,9 @@ namespace XCharts
{ {
if (canvas == null) return; if (canvas == null) return;
Vector2 local; Vector2 local;
var cam = canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : canvas.worldCamera;
if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform, if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform,
Input.mousePosition, canvas.worldCamera, out local)) Input.mousePosition, cam, out local))
{ {
pointerPos = Vector2.zero; pointerPos = Vector2.zero;
} }

View File

@@ -25,7 +25,7 @@ namespace XCharts
public class XChartsMgr : MonoBehaviour public class XChartsMgr : MonoBehaviour
{ {
public const string version = "1.0.5"; public const string version = "1.0.5";
public const int date = 20191215; public const int date = 20191216;
[SerializeField] private string m_NowVersion; [SerializeField] private string m_NowVersion;
[SerializeField] private string m_NewVersion; [SerializeField] private string m_NewVersion;

View File

@@ -1,7 +1,7 @@
{ {
"version": "1.0.5", "version": "1.0.5",
"date": "20191215", "date": "20191216",
"checkdate": "20191215", "checkdate": "20191216",
"desc": "欢迎 Github 上点 Star 支持,非常感谢!", "desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
"homepage": "https://github.com/monitor1394/unity-ugui-XCharts" "homepage": "https://github.com/monitor1394/unity-ugui-XCharts"
} }