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

Method dispose

packages/fairygui/src/core/GObject.ts:869–883  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

867 }
868
869 public dispose(): void {
870 this.removeFromParent();
871 this._relations?.dispose();
872 if (this._displayObject) {
873 this._displayObject.dispose();
874 this._displayObject = null;
875 }
876 for (let i = 0; i < 10; i++) {
877 const gear = this._gears[i];
878 if (gear) {
879 gear.dispose();
880 }
881 }
882 super.dispose();
883 }
884
885 // Display object creation | 显示对象创建
886

Callers

nothing calls this directly

Calls 2

removeFromParentMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected