Files
Test/Library/PackageCache/com.unity.render-pipelines.core@13460d8ea9e5/Runtime-PrivateShared/DebugUIUtilities.cs
T
2026-11-01 23:39:55 +02:00

20 lines
548 B
C#

using System.Collections.Generic;
using UnityEngine.Rendering;
namespace Unity.RenderPipelines.Core.Runtime.Shared
{
internal static class DebugUIUtilities
{
internal static DebugUI.Foldout GetFoldoutByName(string name, IEnumerable<DebugUI.Widget> list)
{
if (list == null) return null;
foreach (var x in list)
{
if (x is DebugUI.Foldout foldout && foldout.displayName == name)
return foldout;
}
return null;
}
}
}