diff --git a/Runtime/Internal/BaseChart.API.cs b/Runtime/Internal/BaseChart.API.cs index ad0dce9f..7952d057 100644 --- a/Runtime/Internal/BaseChart.API.cs +++ b/Runtime/Internal/BaseChart.API.cs @@ -171,6 +171,7 @@ namespace XCharts.Runtime { OnInit(); DefaultChart(); + m_DefaultChartInited = true; } else { diff --git a/Runtime/Internal/BaseChart.cs b/Runtime/Internal/BaseChart.cs index 23b7a17f..3f7bf83d 100644 --- a/Runtime/Internal/BaseChart.cs +++ b/Runtime/Internal/BaseChart.cs @@ -19,6 +19,7 @@ namespace XCharts.Runtime [SerializeField] protected ThemeStyle m_Theme = new ThemeStyle(); [SerializeField] protected Settings m_Settings; [SerializeField] protected DebugInfo m_DebugInfo = new DebugInfo(); + [SerializeField] protected bool m_DefaultChartInited = false; #pragma warning disable 0414 [SerializeField][ListForComponent(typeof(AngleAxis))] private List m_AngleAxes = new List(); @@ -180,6 +181,7 @@ namespace XCharts.Runtime base.Reset(); OnInit(); DefaultChart(); + m_DefaultChartInited = true; Awake(); }