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

Method onExternalLoadSuccess

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

* Called when external resource loaded successfully * 外部资源加载成功时调用

(textureId: string | number, width: number, height: number)

Source from the content-addressed store, hash-verified

450 * 外部资源加载成功时调用
451 */
452 protected onExternalLoadSuccess(textureId: string | number, width: number, height: number): void {
453 this._content.texture = textureId;
454 this._content.scale9Grid = null;
455 this._content.scaleByTile = false;
456 this.sourceWidth = width;
457 this.sourceHeight = height;
458 this.updateLayout();
459 }
460
461 /**
462 * Called when external resource failed to load

Callers 1

loadExternalImageMethod · 0.95

Calls 1

updateLayoutMethod · 0.95

Tested by

no test coverage detected