A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(ui): inline images in rich text draw on a device too
esengine70562644f89c
diff --git a/sdk/src/ui/text/inline-image-plugin.ts b/sdk/src/ui/text/inline-image-plugin.tsindex cc5465990..2315ba576 100644--- a/sdk/src/ui/text/inline-image-plugin.ts+++ b/sdk/src/ui/text/inline-image-plugin.ts@@ -45,8 +45,10 @@ export class InlineImagePlugin implements Plugin {}build(app: App): void {- const module = app.wasmModule as ESEngineModule | undefined;- if (!module) return; // logic-only host → nothing to draw+ if (!app.pipeline) return; // logic-only host → nothing to draw+ // Null on the native core, which rasterizes glyphs through the platform+ // instead of the wasm heap — the measurement atlas below takes either.+ const module = app.wasmModule as ESEngineModule | null;const world = app.world;// A measurement atlas for the shared layout — its glyph advances position