From 6d41daa67862068e3ad6db16cef3cb203a7168c7 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Fri, 12 Jul 2024 08:48:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Label`=E5=9C=A8=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=97=B6=E4=BC=9A=E5=A0=86=E7=A7=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/Object/ChartLabel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/Internal/Object/ChartLabel.cs b/Runtime/Internal/Object/ChartLabel.cs index 3cb6cc01..7295b59a 100644 --- a/Runtime/Internal/Object/ChartLabel.cs +++ b/Runtime/Internal/Object/ChartLabel.cs @@ -22,6 +22,7 @@ namespace XCharts.Runtime private Align m_Align = Align.Left; private Image m_IconImage; private bool m_Active = true; + private bool m_WakeActive = true; public Image icon { @@ -56,7 +57,7 @@ namespace XCharts.Runtime protected override void Awake() { raycastTarget = false; - SetActive(false, true); + SetActive(m_WakeActive, true); } public void SetTextPadding(TextPadding padding) @@ -202,6 +203,7 @@ namespace XCharts.Runtime public void SetActive(bool flag, bool force = false) { + m_WakeActive = flag; if (m_Active == flag && !force) return; if (ChartHelper.SetActive(gameObject, flag)) {