MCPcopy Create free account
hub / github.com/galacean/engine / _onDestroy

Method _onDestroy

packages/core/src/Script.ts:260–267  ·  view source on GitHub ↗

* @internal

()

Source from the content-addressed store, hash-verified

258 * @internal
259 */
260 protected override _onDestroy(): void {
261 super._onDestroy();
262 if (this.scene) {
263 this.scene._componentsManager.addPendingDestroyScript(this);
264 } else {
265 this.onDestroy();
266 }
267 }
268}
269
270export enum PointerMethods {

Callers

nothing calls this directly

Calls 2

onDestroyMethod · 0.95

Tested by

no test coverage detected