Skip to content
迷你世界 Studio
Main Navigation
教程
迷你世界Studio操作教程
操作手册
多人协作
运行模式
使用资源ID
API
类
数据库
枚举
官方主页
简体中文
English
简体中文
English
Appearance
Menu
Return to top
On this page
GetIndexByItem
所属类
:
UIDropDownBox
描述
通过item的key值查找对应的索引。根据item的key值查找其在列表中的索引位置
参数
名称
类型
默认
描述
item
string
item的key值
返回值
返回类型
概要
int
找到的选项索引,从0开始计数;如果未找到则返回-1