DropdownField
A control that allows the user to pick a choice from a list of options. For more information, refer to UXML element DropdownField.
Read time 10 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PopupField<string>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<string>
[UxmlElement(libraryPath = "Controls")][Icon("UIToolkit/Icons/DropdownField.png")]public class DropdownField : PopupField<string>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<string>
Constructors
Constructor | Description |
|---|---|
| DropdownField() | Construct an empty DropdownField. |
| DropdownField(System.Collections.Generic.List{System.String},System.Int32,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Construct a DropdownField. |
| DropdownField(System.Collections.Generic.List{System.String},System.String,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Construct a DropdownField. |
| DropdownField(System.String) | Construct a DropdownField with a Label in front. |
| DropdownField(System.String,System.Collections.Generic.List{System.String},System.Int32,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Construct a DropdownField. |
| DropdownField(System.String,System.Collections.Generic.List{System.String},System.String,System.Func{System.String,System.String},System.Func{System.String,System.String}) | Construct a DropdownField. |