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

Method queueDeferredComponentCallback

packages/core/src/ECS/Scene.ts:449–451  ·  view source on GitHub ↗

* 添加延迟的组件生命周期回调 * * 在编辑器模式下,组件的 onAddedToEntity 回调会通过此方法加入队列。 * * Queue a deferred component lifecycle callback. * In editor mode, component's onAddedToEntity callbacks are queued via this method. * * @param callback 要延迟执行的回调 | The callback to defer

(callback: () => void)

Source from the content-addressed store, hash-verified

447 * @param callback 要延迟执行的回调 | The callback to defer
448 */
449 public queueDeferredComponentCallback(callback: () => void): void {
450 this._deferredComponentCallbacks.push(callback);
451 }
452
453 /**
454 * 开始场景,启动实体处理器等

Callers 1

addComponentMethod · 0.80

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected