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

Method clearContent

packages/fairygui/src/widgets/GLoader.ts:618–635  ·  view source on GitHub ↗

* Clear content * 清除内容

()

Source from the content-addressed store, hash-verified

616 * 清除内容
617 */
618 private clearContent(): void {
619 this.clearErrorState();
620
621 if (this._content) {
622 if (!this._contentItem && this._content.texture) {
623 this.freeExternal(this._content.texture);
624 }
625 this._content.texture = null;
626 this._content.frames = [];
627 }
628
629 if (this._content2) {
630 this._content2.dispose();
631 this._content2 = null;
632 }
633
634 this._contentItem = null;
635 }
636
637 protected handleSizeChanged(): void {
638 super.handleSizeChanged();

Callers 1

loadContentMethod · 0.95

Calls 3

clearErrorStateMethod · 0.95
freeExternalMethod · 0.95
disposeMethod · 0.65

Tested by

no test coverage detected