如题通过重写Dropdown隐藏已选择的选项
public class DropdownExp : Dropdown
{
public new void Show()
{
base.Show();
//隐藏已选选项
for (int i = 0; i < options.Count; i++)
{
transform.Find("Dropdown List/Viewport/Content").GetChild(i + 1).gameObject.SetActive(i != value);
}
}
public override void OnPointerClick(PointerEventData eventData)
{
Show();
}
}