From b74a44dc36e3d3d1af222e882811c412becb939c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Mon, 3 Mar 2025 20:57:50 +0800 Subject: [PATCH] update UIElements --- .../Editor/UIElements/TreeViewer/TreeViewer.cs | 12 ++---------- Assets/YooAsset/Editor/UIElements/UIElementsIcon.cs | 5 +++++ .../DiagnosticSystem/RemotePlayerConnection.cs | 3 --- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Assets/YooAsset/Editor/UIElements/TreeViewer/TreeViewer.cs b/Assets/YooAsset/Editor/UIElements/TreeViewer/TreeViewer.cs index 48236ca7..5ad37e44 100644 --- a/Assets/YooAsset/Editor/UIElements/TreeViewer/TreeViewer.cs +++ b/Assets/YooAsset/Editor/UIElements/TreeViewer/TreeViewer.cs @@ -52,7 +52,7 @@ namespace YooAsset.Editor { _rootList.Add(rootNode); } - + /// /// 设置根节点数据 /// @@ -102,11 +102,6 @@ namespace YooAsset.Editor var container = new VisualElement(); container.style.flexDirection = FlexDirection.Row; - // 缩进元素 - var label = new Label(); - label.name = "space"; - container.Add(label); - // 折叠按钮 var toggle = new ToggleFoldout(); toggle.text = string.Empty; @@ -134,14 +129,11 @@ namespace YooAsset.Editor { var treeNode = _flattenList[index]; - // 设置元素缩进 - var space = item.Q