Skip to content

ECS Framework API v2.2.13


ECS Framework API / hasEntityRef

Function: hasEntityRef()

hasEntityRef(component): boolean

Defined in: packages/core/src/ECS/Decorators/EntityRefDecorator.ts:145

检查Component是否有EntityRef属性

Parameters

component

any

Component实例或Component类

Returns

boolean

如果有EntityRef属性返回true

Released under the MIT License.