MCPcopy Create free account
hub / github.com/esengine/esengine / setHandle

Method setHandle

packages/core/src/ECS/Entity.ts:205–207  ·  view source on GitHub ↗

* @zh 设置实体句柄(内部使用) * @en Set entity handle (internal use) * * @zh 此方法供 Scene 在创建实体时调用 * @en Called by Scene when creating entities * * @internal

(handle: EntityHandle)

Source from the content-addressed store, hash-verified

203 * @internal
204 */
205 public setHandle(handle: EntityHandle): void {
206 this._handle = handle;
207 }
208
209 /**
210 * @zh 设置实体为持久化(跨场景保留)

Callers 2

createEntityMethod · 0.95
createEntitiesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected