Skip to content

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.

fix: call stepFrame before tick so step button works when paused

esenginef33667edd29a
diff --git a/editor/src/panels/game-view/GameViewPanel.ts b/editor/src/panels/game-view/GameViewPanel.ts
index 9a6014bf4..7768e8a27 100644
--- a/editor/src/panels/game-view/GameViewPanel.ts
+++ b/editor/src/panels/game-view/GameViewPanel.ts
@@ -147,6 +147,7 @@ export class GameViewPanel implements PanelInstance, Resizable {
private stepFrame(): void {
const ctx = getSharedRenderContext();
if (ctx.app_) {
+ ctx.app_.stepFrame();
ctx.app_.tick(1 / 60);
ctx.requestRender();
}