Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/esengine/esengine
/ findEntityById
Method
findEntityById
packages/core/src/ECS/Scene.ts:867–869 ·
view source on GitHub ↗
* 根据ID查找实体 * @param id 实体ID
(id: number)
Source
from the content-addressed store, hash-verified
865
* @param id 实体ID
866
*/
867
public findEntityById(id: number): Entity | null {
868
return
this.entities.findEntityById(id);
869
}
870
871
/**
872
* 根据句柄查找实体
Callers
15
TilesetPanel
Function · 0.45
TilemapEditorPanel
Function · 0.45
process
Method · 0.45
updateWorldTransform
Method · 0.45
drawSelectedEntityGizmos
Method · 0.45
_cleanupExpiredEffects
Method · 0.45
onDestroy
Method · 0.45
handlePlayPreview
Function · 0.45
buildNode
Function · 0.45
SceneHierarchy
Function · 0.45
ContentBrowser
Function · 0.45
handleMouseDown
Function · 0.45
Calls
no outgoing calls
Tested by
1
process
Method · 0.36