获取控件

界面
Both Server and Client
Both Mobile and PC

从自定义UI中获取UI控件

声明

func GetWidgetFromCustomUI(owner entity<Player>, target entity<CustomUI>, widgetID CustomUIWidgetID) entity<UIWidget>
go

参数

输入

名称 类型 描述
所属者 Player UI所属的玩家实体
目标 CustomHud 自定义UI实体
控件唯一索引 CustomHudWidgetID 控件唯一索引

返回

类型 描述
HudWidget UI控件实体