From c44583772c590a5ecc1eef050a3e81b5f0e95c28 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 12 Jan 2024 08:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8A=A8=E6=80=81=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=9B=BE=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/BaseChart.API.cs | 1 + Runtime/Internal/BaseChart.cs | 2 ++ 2 files changed, 3 insertions(+) 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(); }