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

Method setDestroyedState

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

* @zh 设置销毁状态(内部使用) * @en Set destroyed state (internal use) * * @zh 此方法供Scene和批量操作使用,以提高性能。不应在普通业务逻辑中调用,应使用destroy()方法 * @en Used by Scene and batch operations for performance. Should not be called in normal business logic, use destroy() instead * * @internal

(destroyed: boolean)

Source from the content-addressed store, hash-verified

258 * @internal
259 */
260 public setDestroyedState(destroyed: boolean): void {
261 this._isDestroyed = destroyed;
262 }
263
264 /**
265 * @zh 获取组件数组(懒加载)

Callers 1

destroyEntitiesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected