No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LabelWidthScope.cs 429B

1234567891011121314151617181920
  1. using System;
  2. namespace UnityEditor.Timeline
  3. {
  4. readonly struct LabelWidthScope : IDisposable
  5. {
  6. readonly float m_PrevValue;
  7. public LabelWidthScope(float newValue)
  8. {
  9. m_PrevValue = EditorGUIUtility.labelWidth;
  10. EditorGUIUtility.labelWidth = newValue;
  11. }
  12. public void Dispose()
  13. {
  14. EditorGUIUtility.labelWidth = m_PrevValue;
  15. }
  16. }
  17. }