Skip to content

ECS Framework API v2.1.50


ECS Framework API / getComponentTypeName

Function: getComponentTypeName()

getComponentTypeName(componentType): string

Defined in: ECS/Decorators/TypeDecorators.ts:76

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

Parameters

componentType

ComponentType

组件构造函数

Returns

string

组件类型名称

Released under the MIT License.