Home > @esengine/ecs-framework-monorepo > ComponentSparseSet > getEntityMask
ComponentSparseSet.getEntityMask() method
获取实体的组件位掩码
Signature:
typescript
getEntityMask(entity: Entity): BitMask64Data | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
entity | 实体 |
Returns:
BitMask64Data | undefined
组件位掩码,如果实体不存在则返回undefined