Skip to content

Home > @esengine/ecs-framework-monorepo > EntityList > findEntity

EntityList.findEntity() method

根据名称查找实体(使用索引,O(1)复杂度)

Signature:

typescript
findEntity(name: string): Entity | null;

Parameters

Parameter

Type

Description

name

string

实体名称

Returns:

Entity | null

找到的第一个实体或null

基于 MIT 许可证发布