Dropdown

ドロップダウン(プルダウン)要素を生成します。

UIDropdown YKLayout.Dropdown(List<string>? list = null, Action<int>? action = null, int? value = null)

引数

引数説明
listList<string>選択肢のリスト
actionAction<int>項目を変更する度に呼ばれるアクション
valueint初期インデックス

サンプル

public override void OnLayout()
{
    Dropdown(["選択肢1", "選択肢2"], (idx) => {}, 1);
}