Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PopupField

Construct a PopupField.
Read time 1 minuteLast updated 10 days ago

Definition

PopupField()

Construct a PopupField.
public PopupField()

PopupField(string)

Construct a PopupField.
public PopupField(string label = null)

Parameters

label

PopupField(List<T>, T, Func<T, string>, Func<T, string>)

Construct a PopupField.
public PopupField(List<T> choices, T defaultValue, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)

Parameters

choices


defaultValue

T

formatSelectedValueCallback


formatListItemCallback

PopupField(string, List<T>, T, Func<T, string>, Func<T, string>)

Construct a PopupField.
public PopupField(string label, List<T> choices, T defaultValue, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)

Parameters

label


choices


defaultValue

T

formatSelectedValueCallback


formatListItemCallback

PopupField(List<T>, int, Func<T, string>, Func<T, string>)

Construct a PopupField.
public PopupField(List<T> choices, int defaultIndex, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)

Parameters

choices


defaultIndex


formatSelectedValueCallback


formatListItemCallback

PopupField(string, List<T>, int, Func<T, string>, Func<T, string>)

Construct a PopupField.
public PopupField(string label, List<T> choices, int defaultIndex, Func<T, string> formatSelectedValueCallback = null, Func<T, string> formatListItemCallback = null)

Parameters

label


choices


defaultIndex


formatSelectedValueCallback


formatListItemCallback