Skip to content

Home > @esengine/ecs-framework-monorepo > ComponentSparseSet > getEntityMask

ComponentSparseSet.getEntityMask() method

获取实体的组件位掩码

Signature:

typescript
getEntityMask(entity: Entity): BitMask64Data | undefined;

Parameters

Parameter

Type

Description

entity

Entity

实体

Returns:

BitMask64Data | undefined

组件位掩码,如果实体不存在则返回undefined

基于 MIT 许可证发布