跳到主要内容

Class DropdownField

A drop-down menu control.

Properties

invalidValue

Is current value invalid? Return true if winS.UnityEditor.UIElement.DropdownField.choiceList does not contain current value.

public bool invalidValue { get; private set; }

index

public int index { get; set; }

choiceList

public IList<string> choiceList { get; set; }

inputElement

public override VisualElement inputElement { get; }

Methods

SetValueWithoutNotify(string value)

public override void SetValueWithoutNotify(string value)

SetIndexWithoutNotify(int newIndex)

public void SetIndexWithoutNotify(int newIndex)

SetValue(string value)

protected override void SetValue(string value)