From 2818818f0313ba77b987164969dd459fb7a5d025 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Tue, 31 Dec 2024 13:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UIPointQuestion.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/UI/UIPointQuestion.cs b/Assets/Scripts/UI/UIPointQuestion.cs index 49c43b95..f9cb7d81 100644 --- a/Assets/Scripts/UI/UIPointQuestion.cs +++ b/Assets/Scripts/UI/UIPointQuestion.cs @@ -28,6 +28,8 @@ namespace QFramework.Example protected override void OnOpen(IUIData uiData = null) { mData = uiData as UIPointQuestionData ?? new UIPointQuestionData(); + + Content.RemoveAllChildren(); var paths = mData.paths.Split(','); for (int i = 0; i < paths.Length; i++) { @@ -60,11 +62,11 @@ namespace QFramework.Example protected override void OnHide() { + pointMap.Clear(); } protected override void OnClose() { - pointMap.Clear(); } } }