修复ChartLabel在TMP下异常报错的问题

This commit is contained in:
monitor1394
2021-07-08 07:04:46 +08:00
parent df5fa7807b
commit af8391faee
2 changed files with 32 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ namespace XCharts
switch (m_Align)
{
case Align.Left:
switch (m_LabelText.text.alignment)
switch (m_LabelText.alignment)
{
case TextAnchor.LowerLeft:
case TextAnchor.UpperLeft:
@@ -217,7 +217,7 @@ namespace XCharts
}
break;
case Align.Right:
switch (m_LabelText.text.alignment)
switch (m_LabelText.alignment)
{
case TextAnchor.LowerLeft:
case TextAnchor.UpperLeft: