mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-22 08:50:10 +00:00
Fixed a build compatibility error
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#if UNITY_EDITOR
|
||||
/************************************************/
|
||||
/* */
|
||||
/* Copyright (c) 2018 - 2021 monitor1394 */
|
||||
@@ -90,4 +91,5 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -412,8 +412,10 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
public static void EnableTextMeshPro()
|
||||
{
|
||||
|
||||
DefineSymbolsUtil.AddGlobalDefine("dUI_TextMeshPro");
|
||||
RemoveAllChartObject();
|
||||
}
|
||||
@@ -423,5 +425,6 @@ namespace XCharts
|
||||
DefineSymbolsUtil.RemoveGlobalDefine("dUI_TextMeshPro");
|
||||
RemoveAllChartObject();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -18,9 +18,9 @@ namespace XCharts
|
||||
public class XChartsSettings : ScriptableObject
|
||||
{
|
||||
|
||||
[SerializeField] private Font m_Font;
|
||||
[SerializeField] private Font m_Font = null;
|
||||
#if dUI_TextMeshPro
|
||||
[SerializeField] private TMP_FontAsset m_TMPFont;
|
||||
[SerializeField] private TMP_FontAsset m_TMPFont = null;
|
||||
#endif
|
||||
[SerializeField] [Range(1, 200)] private int m_FontSizeLv1 = 28;
|
||||
[SerializeField] [Range(1, 200)] private int m_FontSizeLv2 = 24;
|
||||
|
||||
Reference in New Issue
Block a user