LabelWidthAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.PropertyAttributeLabelWidthAttribute
- 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. |