Files
LowPolyBattleSim/Library/PackageCache/com.unity.timeline@c58b4ee65782/Editor/Utilities/Scopes/LabelWidthScope.cs
Caleb Sandford deQuincey ecdd3e2a9e intial commit
2025-06-27 23:27:49 +01: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;
}
}
}