Tri-Inspector/Runtime/Attributes/LabelWidthAttribute.cs

17 lines
370 B
C#
Raw Normal View History

2021-12-07 10:20:36 -05:00
using System;
using System.Diagnostics;
namespace TriInspector
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
[Conditional("UNITY_EDITOR")]
2023-03-11 16:18:57 -05:00
public class LabelWidthAttribute : Attribute
2021-12-07 10:20:36 -05:00
{
public float Width { get; }
public LabelWidthAttribute(float width)
{
Width = width;
}
}
}