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