Home > @esengine/ecs-framework-monorepo > Scene > findEntityById
Scene.findEntityById() method
根据ID查找实体
Signature:
typescript
findEntityById(id: number): Entity | null;
Parameters
Parameter | Type | Description |
---|---|---|
id | number | 实体ID |
Returns:
Entity | null