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

Method components

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

* @zh 获取组件数组(懒加载) * @en Get component array (lazy-loaded) * * @returns @zh 只读的组件数组 @en Readonly component array

()

Source from the content-addressed store, hash-verified

268 * @returns @zh 只读的组件数组 @en Readonly component array
269 */
270 public get components(): readonly Component[] {
271 if (this._componentCache === null) {
272 this._rebuildComponentCache();
273 }
274 return this._componentCache!;
275 }
276
277 /**
278 * @zh 从存储重建组件缓存

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected