Skip to content

Commit

Permalink
Fold ui
Browse files Browse the repository at this point in the history
  • Loading branch information
noir-neo committed Mar 14, 2024
1 parent dc8b180 commit 0765ff7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/Hatbor/Scripts/UI/ConfigRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ void IStartable.Start()
{
var root = uiDocument.rootVisualElement;
var container = root.Q<VisualElement>("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)
{
Expand Down

0 comments on commit 0765ff7

Please sign in to comment.