Update EditorGUIUtils.cs

This commit is contained in:
max 2023-07-30 00:22:39 +02:00
parent fbd5a342fb
commit 40c49b076e

View File

@ -17,14 +17,14 @@ public static void HorizontalLine(Color color)
public static void HorizontalLine() => HorizontalLine(horizontalLineColor);
public class FoldoutHeaderScope : System.IDisposable
public struct FoldoutHeaderScope : System.IDisposable
{
public FoldoutHeaderScope(string label, ref bool foldout)
{
foldout = EditorGUILayout.BeginFoldoutHeaderGroup(foldout, label);
}
public void Dispose()
public readonly void Dispose()
{
EditorGUILayout.EndFoldoutHeaderGroup();
}