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.

docs(editor): cover v0.30.0 — play controls, sticky mode pins, F11

yhh51049555b75b
diff --git a/docs/astro/src/content/docs/guides/editor.mdx b/docs/astro/src/content/docs/guides/editor.mdx
index bd1d485fd..d42e5116a 100644
--- a/docs/astro/src/content/docs/guides/editor.mdx
+++ b/docs/astro/src/content/docs/guides/editor.mdx
@@ -102,9 +102,11 @@ their fields directly (light radius, collider size, emitter shape, joint anchors
The Activity Bar's top three icons switch the **editing mode** — **Scene**, **UI**, or
**Tilemap**. The mode also *follows your selection*: pick a `Canvas` or `UINode` and the
-editor suggests **UI** mode, a `TilemapLayer` suggests **Tilemap**. Each mode reveals its
-companion panels (UI Widgets, the Tilemap painter) and its viewport aids; clicking a mode
-pins it until your selection implies another.
+editor suggests **UI** mode, a `TilemapLayer` suggests **Tilemap** — switching that mode's
+tools and viewport aids **without** disturbing your panel layout. To open a mode's
+companion panels (UI Widgets, the Tilemap painter), click its Activity Bar icon or the
+viewport's mode chip; that also **pins** the mode as a sticky lock that ordinary selection
+clicks won't clear — re-click it to go back to following the selection.
**The design frame + device preview.** A scene is authored against a **design resolution** —
a fixed reference size (e.g. `1920 × 1080` landscape or `750 × 1334` portrait). This is a
@@ -193,11 +195,16 @@ across the on-disk dependency graph *and* the unsaved open scene.
The **Play** controls in the toolbar run your game:
-- **Play** starts the game (the button becomes **Restart** while running); **Pause**
- and **Stop** do what they say.
+- **Play** starts the game; while running the same button becomes **Stop**, with
+ **Restart** and **Pause/Resume** as side buttons.
- The play-mode dropdown chooses **Play In Viewport** (the game hosts over the viewport)
- or **Play In New Window** (a dedicated **Game** tab).
-- Shortcuts: **F5** to play/toggle, **Esc** to stop.
+ or **Play In New Window** (a dedicated **Game** tab), and toggles **Maximize Viewport on
+ Play** — which hands the whole workspace to the running game and restores your layout on
+ Stop.
+- A running game reads as a soft accent ring around the viewport (amber, with the frame
+ dimmed, when paused) — not a badge over the game.
+- Shortcuts: **F5** play, **Esc** stop, **F6** pause/resume, **Shift+F5** restart, and
+ **F11** to maximize/restore the viewport at any time.
Because play uses an isolated realm — the same runtime that ships your game — what you
see in play is what a player gets.
@@ -286,7 +293,9 @@ Settings → Keyboard Shortcuts.
| Select / Move / Rotate / Scale tool | `Q` / `W` / `E` / `R` |
| Nudge selection (×10 with Shift) | Arrow keys |
| Frame Selected | `F` |
-| Play / toggle · Stop | `F5` · `Esc` |
+| Play · Stop | `F5` · `Esc` |
+| Pause/Resume · Restart | `F6` · `shift + F5` |
+| Maximize / restore viewport | `F11` |
| Command Palette | `mod + shift + P` |
| Content Drawer | `Ctrl + Space` |
| Project Settings | `mod + ,` |
diff --git a/docs/astro/src/content/docs/zh-cn/guides/editor.mdx b/docs/astro/src/content/docs/zh-cn/guides/editor.mdx
index 5da35b06b..0e16f733d 100644
--- a/docs/astro/src/content/docs/zh-cn/guides/editor.mdx
+++ b/docs/astro/src/content/docs/zh-cn/guides/editor.mdx
@@ -91,8 +91,9 @@ gizmo(图标、视野矩形、光照范围/锥、碰撞体轮廓、关节锚点
活动栏顶部三个图标切换**编辑模式**——**场景(Scene)**、**UI**、**瓦片地图(Tilemap)**。模式也会
*跟随你的选择*:选中 `Canvas` 或 `UINode`,编辑器建议 **UI** 模式,选中 `TilemapLayer` 建议**瓦片
-地图**模式。每个模式会露出其配套面板(UI 控件面板、瓦片地图绘制器)和对应的视口辅助;点击某个模式会
-固定它,直到你的选择指向另一个模式。
+地图**模式——只切换该模式的工具和视口辅助,**不会**打乱你的面板布局。要打开某个模式的配套面板
+(UI 控件面板、瓦片地图绘制器),点它的活动栏图标或视口里的模式芯片;这也会把该模式**固定**成一个
+粘性锁,普通的选中点击不再清掉它——再点一次即可回到跟随选择。
**设计框与设备预览。** 场景是对着**设计分辨率**创作的——一个固定的参考尺寸(比如横屏
`1920 × 1080` 或竖屏 `750 × 1334`)。它是**项目级**的值(项目设置 → 显示),不属于 UI 层:视口的
@@ -161,9 +162,11 @@ Details 是选中项的检视器。它列出实体上的每个组件及其字段
工具栏里的**运行**控制驱动你的游戏:
-- **运行**启动游戏(运行时按钮变成**重启**);**暂停**和**停止**如其名。
-- 运行模式下拉选择**在视口中运行**(游戏托管在视口上)或**在新窗口运行**(专门的 **Game** 标签)。
-- 快捷键:**F5** 运行/切换,**Esc** 停止。
+- **运行**启动游戏;运行时同一个按钮变成**停止**,旁边是**重启**和**暂停/继续**侧键。
+- 运行模式下拉选择**在视口中运行**(游戏托管在视口上)或**在新窗口运行**(专门的 **Game** 标签),
+ 并可切换**运行时最大化视口**——把整个工作区让给运行中的游戏,停止时还原你的布局。
+- 运行中的游戏在视口四周显示一圈柔和的强调色边框(暂停时转琥珀色并压暗画面),而不是盖在游戏上的角标。
+- 快捷键:**F5** 运行,**Esc** 停止,**F6** 暂停/继续,**Shift+F5** 重启,**F11** 随时最大化/还原视口。
因为运行用的是隔离 realm——正是发布你游戏的那套运行时——你在运行里看到的,就是玩家会得到的。
@@ -235,7 +238,9 @@ Details 是选中项的检视器。它列出实体上的每个组件及其字段
| 选择 / 移动 / 旋转 / 缩放 工具 | `Q` / `W` / `E` / `R` |
| 微移选择(按 Shift ×10) | 方向键 |
| 聚焦选中 | `F` |
-| 运行/切换 · 停止 | `F5` · `Esc` |
+| 运行 · 停止 | `F5` · `Esc` |
+| 暂停/继续 · 重启 | `F6` · `shift + F5` |
+| 最大化 / 还原视口 | `F11` |
| 命令面板 | `mod + shift + P` |
| 内容抽屉 | `Ctrl + Space` |
| 项目设置 | `mod + ,` |