From bf6b7c057aa41da3eb16a06dfb46a931f7e19933 Mon Sep 17 00:00:00 2001 From: shenjianxing <”315615051@qq.com“> Date: Fri, 7 Feb 2025 14:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E5=AD=90=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E6=97=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/UIOperationList.cs | 84 +++++++++++++++------------- 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/Assets/Scripts/UI/UIOperationList.cs b/Assets/Scripts/UI/UIOperationList.cs index e767697a..29aed0e8 100644 --- a/Assets/Scripts/UI/UIOperationList.cs +++ b/Assets/Scripts/UI/UIOperationList.cs @@ -7,6 +7,7 @@ using TMPro; using System.Collections.Generic; using static OperationController; using System; +using UnityEditor.Hardware; namespace QFramework.Example { public class UIOperationListData : UIPanelData @@ -88,57 +89,62 @@ namespace QFramework.Example StepContent.RemoveAllChildren(); foreach (var item in op.Steps) { - GameObject obj = GameObject.Instantiate(Step.gameObject, StepContent); - Transform title = obj.transform.Find("Title"); - var name = title.Find("Name").GetComponent(); - name.text = item.Name; - var arrow = title.Find("Arrow").transform; - Image highIcon = title.Find("HighIcon").GetComponent(); - Color highColor = new Color(25f / 255f, 224f / 255f, 224f / 255f); - GameObject subContent = obj.transform.Find("SubContent").gameObject; - Button btn = title.GetComponent