Files
Bombaleila/Library/PackageCache/com.unity.timeline@7f8b2fb101b6/Editor/Utilities/Scopes/LabelWidthScope.cs
2026-03-03 00:39:30 +05:00

21 lines
429 B
C#

using System;
namespace UnityEditor.Timeline
{
readonly struct LabelWidthScope : IDisposable
{
readonly float m_PrevValue;
public LabelWidthScope(float newValue)
{
m_PrevValue = EditorGUIUtility.labelWidth;
EditorGUIUtility.labelWidth = newValue;
}
public void Dispose()
{
EditorGUIUtility.labelWidth = m_PrevValue;
}
}
}