Language
Edit

LabelWidthAttribute Class

Definition

Indicates that the serializable property's label should be of a particular width when rendered in the Unity inspector window.

[System.AttributeUsage(System.AttributeTargets.Field)]
public class LabelWidthAttribute : UnityEngine.PropertyAttribute
[<System.AttributeUsage(System.AttributeTargets.Field)>]
type LabelWidthAttribute = class
    inherit PropertyAttribute
Public Class LabelWidthAttribute
Inherits PropertyAttribute
Inheritance
UnityEngine.PropertyAttribute
LabelWidthAttribute
Attributes

Remarks

This attribute does not indicate a font size change, and is only applicable to applications running in the Unity Editor.

Constructors

Name Description
LabelWidthAttribute(Single)

Initializes a new instance of the LabelWidthAttribute class.

Properties

Name Description
Width

Get the width to apply to the serializable property's label when the label is rendered in the Unity inspector window.

Applies to