暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }