是否存在组件

STD库
服务端
Both Mobile and PC

判断目标实体是否存在组件

声明

func HasComponent(target entity, componentID Type) bool
go

参数

输入

名称 类型 描述
目标 entity 目标实体
组件类型ID Type 组件类型

返回

类型 描述
Bool 是否存在