using UnityEngine; using UnityEngine.UI; using QFramework; using TMPro; using UnityEngine.SceneManagement; using System; namespace QFramework.Example { public class UI3DObjSelectData : UIPanelData { } public partial class UI3DObjSelect : UIPanel { protected override void OnInit(IUIData uiData = null) { mData = uiData as UI3DObjSelectData ?? new UI3DObjSelectData(); // please add init code here CloseBtn.onClick.AddListener(() => { Application.Quit(); }); } protected override void OnOpen(IUIData uiData = null) { Content.RemoveAllChildren(); int index = 0; foreach (var item in Global.Instance.curModule.body3d.parts) { GameObject obj = GameObject.Instantiate(BtnItem.gameObject, Content); obj.transform.Find("Label").GetComponent().text = item.Key; obj.GetComponent