Class PopupField<T>
Implements
Inherited Members
Namespace: UnityEditor.Experimental.UIElements
Assembly: UnityEditor.dll
Syntax
public class PopupField<T> : BasePopupField<T, T>, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle, IBindable, INotifyValueChanged<T>Type Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
| Improve this Doc View SourcePopupField(List<T>, T, Func<T, String>, Func<T, String>)
Declaration
public PopupField(List<T> choices, T defaultValue, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)Parameters
| Type | Name | Description | 
|---|---|---|
| List<T> | choices | |
| T | defaultValue | |
| Func<T, String> | formatSelectedValueCallback | |
| Func<T, String> | formatListItemCallback | 
PopupField(List<T>, Func<T, String>, Func<T, String>)
Declaration
protected PopupField(List<T> choices, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)Parameters
| Type | Name | Description | 
|---|---|---|
| List<T> | choices | |
| Func<T, String> | formatSelectedValueCallback | |
| Func<T, String> | formatListItemCallback | 
PopupField(List<T>, Int32, Func<T, String>, Func<T, String>)
Declaration
public PopupField(List<T> choices, int defaultIndex, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)Parameters
| Type | Name | Description | 
|---|---|---|
| List<T> | choices | |
| Int32 | defaultIndex | |
| Func<T, String> | formatSelectedValueCallback | |
| Func<T, String> | formatListItemCallback | 
Properties
| Improve this Doc View SourceformatListItemCallback
Declaration
public virtual Func<T, string> formatListItemCallback { get; set; }Property Value
| Type | Description | 
|---|---|
| Func<T, String> | 
formatSelectedValueCallback
Declaration
public virtual Func<T, string> formatSelectedValueCallback { get; set; }Property Value
| Type | Description | 
|---|---|
| Func<T, String> | 
index
Declaration
public int index { get; set; }Property Value
| Type | Description | 
|---|---|
| Int32 | 
value
Declaration
public override T value { get; set; }Property Value
| Type | Description | 
|---|---|
| T | 
Overrides
UnityEngine.Experimental.UIElements.BaseField<T>.value
  Methods
| Improve this Doc View SourceSetValueWithoutNotify(T)
Declaration
public override void SetValueWithoutNotify(T newValue)Parameters
| Type | Name | Description | 
|---|---|---|
| T | newValue | 
Overrides
UnityEditor.Experimental.UIElements.BasePopupField<T, T>.SetValueWithoutNotify(T)