Singularity/Library/PackageCache/com.unity.timeline@1.6.4/Editor/Utilities/Scopes/HorizontalScope.cs
2024-05-06 11:45:45 -07:00

21 lines
418 B
C#

using System;
using UnityEngine;
namespace UnityEditor.Timeline
{
readonly struct HorizontalScope : IDisposable
{
public readonly Rect rect;
public HorizontalScope(GUIContent content, GUIStyle style)
{
rect = EditorGUILayout.BeginHorizontal(content, style);
}
public void Dispose()
{
EditorGUILayout.EndHorizontal();
}
}
}