优化代码

This commit is contained in:
monitor1394
2021-05-25 23:45:15 +08:00
parent 7057cce129
commit 4892de1435
9 changed files with 136 additions and 91 deletions

View File

@@ -247,7 +247,7 @@ namespace XCharts
chartText.tmpText.alignment = textStyle.tmpAlignment;
chartText.tmpText.richText = true;
chartText.tmpText.raycastTarget = false;
chartText.tmpText.enableWordWrapping = textStyle.wrap;
chartText.tmpText.enableWordWrapping = textStyle.autoWrap;
#else
chartText.text = GetOrAddComponent<Text>(txtObj);
chartText.text.font = textStyle.font == null ? theme.font : textStyle.font;