LabelWidthAttribute

LabelWidth is used to change the width of labels for properties.

namespace Sirenix.OdinInspector
{
[AttributeUsageAttribute((AttributeTargets)448, AllowMultiple = False, Inherited = True)]
[DontApplyToListElementsAttribute]
public class LabelWidthAttribute : Attribute
}

Requirements

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector
Version: 1.0.5.0

See Also

Constructors

Definition Description
LabelWidthAttribute(float) Give a property a custom label.

Properties

Return Type Definition Description
float Width The new text of the label.

Example

The following example shows how LabelText is applied to a few property fields.

public MyComponent : MonoBehaviour
{
	[LabelWidth("3")]
	public int MyInt3;
}