修复TMP下报错

This commit is contained in:
monitor1394
2023-02-22 22:08:40 +08:00
parent 33246c2a1f
commit 398fee2d97

View File

@@ -275,11 +275,7 @@ namespace XCharts.Runtime
case Align.BottomCenter: case Align.BottomCenter:
case Align.BottomLeft: case Align.BottomLeft:
case Align.BottomRight: case Align.BottomRight:
#if dUI_TextMeshPro
case TextAlignmentOptions.Bottom:
case TextAlignmentOptions.BottomLeft:
case TextAlignmentOptions.BottomRight:
#endif
return true; return true;
default: default:
return false; return false;
@@ -293,11 +289,6 @@ namespace XCharts.Runtime
case Align.TopCenter: case Align.TopCenter:
case Align.TopLeft: case Align.TopLeft:
case Align.TopRight: case Align.TopRight:
#if dUI_TextMeshPro
case TextAlignmentOptions.Top:
case TextAlignmentOptions.TopLeft:
case TextAlignmentOptions.TopRight:
#endif
return true; return true;
default: default:
return false; return false;
@@ -311,11 +302,6 @@ namespace XCharts.Runtime
case Align.Center: case Align.Center:
case Align.CenterLeft: case Align.CenterLeft:
case Align.CenterRight: case Align.CenterRight:
#if dUI_TextMeshPro
case TextAlignmentOptions.Center:
case TextAlignmentOptions.CenterLeft:
case TextAlignmentOptions.CenterRight:
#endif
return true; return true;
default: default:
return false; return false;