聲明
func CreateCustomUI(out var createdEntity entity<CustomUI>, owner entity<Player>, uIAssetID CustomUIAssetID)
go
參數
輸入
名稱 | 類型 | 描述 |
---|---|---|
所屬者 | Player | The player entity it belongs to, only visible to the player. |
UI Asset ID | CustomHudAssetID | The custom UI asset ID |
輸出
名稱 | 類型 | 描述 |
---|---|---|
創建的實體 | CustomHud | The code is used as the parameter name for creating a UI entity, and its corresponding local variable value represents the created UI entity. |