PopupField<T>
class in UnityEngine.UIElements · UnityEngine.CoreModule · inherits from BasePopupField<T, T>
Not in Unity's public API, or in an assembly the coverage doesn't count.
Constructors 1
PopupField()PopupField(string? label = null)PopupField(List<T> choices, T defaultValue, Func<T, string>? formatSelectedValueCallback = null, Func<T, string>? formatListItemCallback = null)PopupField(string? label, List<T> choices, T defaultValue, Func<T, string>? formatSelectedValueCallback = null, Func<T, string>? formatListItemCallback = null)PopupField(List<T> choices, int defaultIndex, Func<T, string>? formatSelectedValueCallback = null, Func<T, string>? formatListItemCallback = null)PopupField(string? label, List<T> choices, int defaultIndex, Func<T, string>? formatSelectedValueCallback = null, Func<T, string>? formatListItemCallback = null)Fields 3
static readonly string inputUssClassNamestatic readonly string labelUssClassNamestatic readonly string ussClassNameProperties 5
List<T> choices { get; set; }Func<T, string>? formatListItemCallback { get; set; }Func<T, string>? formatSelectedValueCallback { get; set; }How the value shows; setting it updates the shown text (with a change event, as Unity does).
virtual int index { get; set; }T value { get; set; }Methods 1
void SetValueWithoutNotify(T newValue)