MaskField
The MaskField is a control that lets users select one or more options from a list of options. For more information, refer to UXML element MaskField.
Read time 10 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: BaseMaskField<int>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<int>
[UxmlElement(libraryPath = "Controls")][Icon("UIToolkit/Icons/MaskField.png")]public class MaskField : BaseMaskField<int>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<int>
Static Fields
Value | Description |
|---|---|
| inputUssClassName | USS class name of input elements in elements of this type. |
| labelUssClassName | USS class name of labels in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| MaskField() | Initializes and returns an instance of MaskField. |
| MaskField(System.Collections.Generic.List{System.String},System.Int32,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Initializes and returns an instance of MaskField. |
| MaskField(System.String) | Initializes and returns an instance of MaskField. |
| MaskField(System.String,System.Collections.Generic.List{System.String},System.Int32,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Initializes and returns an instance of MaskField. |
Properties
Property | Description |
|---|---|
| formatListItemCallback | Callback that provides a string representation used to populate the popup menu. |
| formatSelectedValueCallback | Callback that provides a string representation used to display the selected value. |