完善SerieSymbol以支持象形柱图PictorialBarChart扩展

This commit is contained in:
monitor1394
2021-07-22 08:11:12 +08:00
parent f452905f7a
commit 16d6a5a3a0
9 changed files with 100 additions and 11 deletions

View File

@@ -166,8 +166,10 @@ namespace XCharts
public bool ScreenPointToChartPoint(Vector2 screenPoint, out Vector2 chartPoint)
{
#if UNITY_STANDALONE
screenPoint = Display.RelativeMouseAt(screenPoint);
#if UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX
var relative = Display.RelativeMouseAt(screenPoint);
if(relative != Vector3.zero)
screenPoint = relative;
#endif
var cam = canvas.renderMode == RenderMode.ScreenSpaceOverlay ? null : canvas.worldCamera;
if (!RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform,