Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[DontApplyToListElements]
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false, Inherited = true)]
[Conditional("UNITY_EDITOR")]
public class LabelWidthAttribute : Attribute, _Attribute
LabelWidth is used to change the width of labels for properties.
The following example shows how LabelText is applied to a few property fields.
public MyComponent : MonoBehaviour
{
[LabelWidth("3")]
public int MyInt3;
}
public LabelWidthAttribute(float width)
System.Single | width | The width of the label. |
public float Width