This commit is contained in:
高国正 2023-08-30 10:35:04 +08:00
parent 6de99658f0
commit b3546a72e2
1 changed files with 2 additions and 1 deletions

View File

@ -328,7 +328,7 @@ public class SearchName : MonoBehaviour
{ {
for (int i = 0; i < scrollViewContent.childCount; i++) for (int i = 0; i < scrollViewContent.childCount; i++)
{ {
Destroy(scrollViewContent.GetChild(i).gameObject); DestroyImmediate(scrollViewContent.GetChild(i).gameObject);
} }
objs.Clear(); objs.Clear();
@ -341,6 +341,7 @@ public class SearchName : MonoBehaviour
scrollView.transform.Find("±íÍ·/Text (TMP)").GetComponent<TextMeshProUGUI>().text = searchType.ToString().Split('_')[0] + "Ãû³Æ"; scrollView.transform.Find("±íÍ·/Text (TMP)").GetComponent<TextMeshProUGUI>().text = searchType.ToString().Split('_')[0] + "Ãû³Æ";
} }
private void Update() private void Update()
{ {