Skip to content

ECS Framework API v2.2.13


ECS Framework API / getComponentTypeName

Function: getComponentTypeName()

getComponentTypeName(componentType): string

Defined in: packages/core/src/ECS/Decorators/TypeDecorators.ts:114

获取组件类型的名称,优先使用装饰器指定的名称

Parameters

componentType

ComponentType

组件构造函数

Returns

string

组件类型名称

Released under the MIT License.