arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.timeline@6b9e48457ddb/Editor/Utilities/Scopes/LabelWidthScope.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02: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;
}
}
}