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

Method getLayerById

packages/tilemap/src/TilemapComponent.ts:594–596  ·  view source on GitHub ↗

* Get layer data by ID * 按ID获取图层数据

(id: string)

Source from the content-addressed store, hash-verified

592 * 按ID获取图层数据
593 */
594 getLayerById(id: string): ITilemapLayerData | undefined {
595 return this._layers.find((l) => l.id === id);
596 }
597
598 /**
599 * Set layer visibility

Callers

nothing calls this directly

Calls 1

findMethod · 0.45

Tested by

no test coverage detected