set tooltip on heighest layer

This commit is contained in:
monitor1394
2022-06-30 13:38:46 +08:00
parent 23b3c652d6
commit a60d258eb8
2 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,8 @@
## branch-2.0
* (2022.06.30) 优化`Radar``Tooltip`的层在`Indicator`之上
## v2.8.1
* (2022.05.06) 发布`v2.8.1`版本

View File

@@ -266,6 +266,8 @@ namespace XCharts
var offset = new Vector3(textStyle.offset.x, textStyle.offset.y);
AxisHelper.AdjustCircleLabelPos(txt, pos, radar.runtimeCenterPos, txtHig, offset);
}
if(chart.tooltip.gameObject != null)
chart.tooltip.gameObject.transform.SetSiblingIndex(chart.transform.childCount-1);
chart.RefreshBasePainter();
};
radar.refreshComponent.Invoke();
@@ -482,7 +484,7 @@ namespace XCharts
}
else if (!serieNameSet.ContainsKey(dataName))
{
serieNameCount++;
serieNameCount++;
serieNameSet.Add(dataName, serieNameCount);
serieIndex = serieNameCount;
}