优化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

@@ -124,7 +124,7 @@ namespace XCharts.Runtime
label.text.SetAlignment(textStyle.GetAlignment(TextAnchor.MiddleCenter));
label.SetText(labelName);
label.SetPosition(GetLabelPosition(polar, axis, angleAxis.context.startAngle, totalWidth));
label.SetActive(true);
label.SetActive(true, true);
label.SetTextActive(true);
axis.context.labelObjectList.Add(label);