From 0765ff78643c2e9fca267b036f1018d0e9f8a9b3 Mon Sep 17 00:00:00 2001 From: Shoma SATO Date: Fri, 15 Mar 2024 02:18:26 +0900 Subject: [PATCH] Fold ui --- Assets/Hatbor/Scripts/UI/ConfigRoot.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Hatbor/Scripts/UI/ConfigRoot.cs b/Assets/Hatbor/Scripts/UI/ConfigRoot.cs index 1d02a6b..2a05ec1 100644 --- a/Assets/Hatbor/Scripts/UI/ConfigRoot.cs +++ b/Assets/Hatbor/Scripts/UI/ConfigRoot.cs @@ -34,11 +34,13 @@ void IStartable.Start() { var root = uiDocument.rootVisualElement; var container = root.Q("unity-content-container"); + var recorderFoldout = new Foldout(); + container.Add(recorderFoldout); foreach (var recorder in profilerRecorders) { var performanceGroup = new PerformanceGroup(); performanceGroup.Bind(recorder).AddTo(disposables); - container.Add(performanceGroup); + recorderFoldout.Add(performanceGroup); } foreach (var config in configs) {