Skip to content

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

Scene.findEntity() method

搜索并返回第一个具有名称的实体

Signature:

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

Parameters

Parameter

Type

Description

name

string

实体名称

Returns:

Entity | null

基于 MIT 许可证发布