From 7f2de53af90c29b87eafd18d831df413cdd8948d Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 17 Oct 2023 21:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96UIComponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Internal/UIComponent.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Runtime/Internal/UIComponent.cs b/Runtime/Internal/UIComponent.cs index d65138dd..73887875 100644 --- a/Runtime/Internal/UIComponent.cs +++ b/Runtime/Internal/UIComponent.cs @@ -41,9 +41,23 @@ namespace XCharts.Runtime return true; } + [Since("v3.8.2")] public void SetDataDirty() { m_DataDirty = true; + m_RefreshChart = true; + } + + public override void SetAllDirty() + { + base.SetAllDirty(); + SetDataDirty(); + } + + public override void SetVerticesDirty() + { + base.SetVerticesDirty(); + m_RefreshChart = true; } protected override void InitComponent()