mathe/Library/PackageCache/com.unity.timeline@1.7.5/Editor/Utilities/Scopes/HorizontalScope.cs

21 lines
418 B
C#
Raw Normal View History

2024-09-20 20:30:10 +02:00
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();
}
}
}