优化Label显示体验

This commit is contained in:
monitor1394
2024-07-12 21:22:53 +08:00
parent 99d824e3a0
commit b22288eac4
11 changed files with 22 additions and 21 deletions

View File

@@ -45,7 +45,7 @@ namespace XCharts.Runtime
var label = ChartHelper.AddChartLabel("label", m_MarkLineLabelRoot.transform, markArea.label, chart.theme.axis,
component.text, Color.clear, TextAnchor.MiddleCenter);
UpdateRuntimeData(component);
label.SetActive(markArea.label.show);
label.SetActive(markArea.label.show, true);
label.SetPosition(component.runtimeLabelPosition);
label.SetText(component.text);
markArea.runtimeLabel = label;