1
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace AYellowpaper.SerializedCollections.Editor
|
||||
{
|
||||
public struct LabelWidth : IDisposable
|
||||
{
|
||||
public float PreviousWidth { get; }
|
||||
|
||||
public LabelWidth(float width)
|
||||
{
|
||||
PreviousWidth = EditorGUIUtility.labelWidth;
|
||||
EditorGUIUtility.labelWidth = width;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EditorGUIUtility.labelWidth = PreviousWidth;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user