protected override void InitUI(UIDataParent UIDataParent = null) { base.InitUI(UIDataParent); AFLogger.d("UIChild InitUI"); if (UIDataParent == null) { return; } UIChildData uIChildData = UIDataParent as UIChildData; AFLogger.log(transform); indexText.text = "子物体:" + uIChildData.index.ToString(); }
protected override void InitUI(UIDataParent UIDataParent = null) { base.InitUI(UIDataParent); AFLogger.d("UIABLoadTestPre InitUI"); UIChildData uIChildData = new UIChildData(); //初始化子物体 for (int i = 0; i < 3; i++) { //TODO : transformPath完成替换 uIChildData.index = i; CreateSubPanel <UIChild>((int)testChildUIEnum.UIChild, transform.GetChild(1).GetChild(0).GetChild(0), UIDataParent: uIChildData, this); } }