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(); } } }