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
docs(editor): Create popover surfaces components/prefabs; document field constraints
esengine36a3e3e2aaf0
diff --git a/docs/astro/src/content/docs/guides/editor.mdx b/docs/astro/src/content/docs/guides/editor.mdxindex 957f6a14e..d54e1a7a1 100644--- a/docs/astro/src/content/docs/guides/editor.mdx+++ b/docs/astro/src/content/docs/guides/editor.mdx@@ -103,8 +103,12 @@ view rect, light reach/cone, collider outline) so you can see and place them.There are several ways to add an entity:- **Entity → Add Entity** (or the toolbar) drops a blank Transform entity.-- **Create…** opens a command-palette of entity templates: **Basic** (Empty), **2D**- (Sprite, Camera, Particles, Light), and **UI** (Canvas plus the built-in UI widgets).+- **Create…** opens a command-palette that spawns entities: the built-ins — **Empty**,+ **Sprite**, **Camera**, **Particles**, **Light**, **Tilemap**, **Spine**, **Audio**,+ **Text**, **Shape**, **Mesh**, **Trail**, and the **UI** widgets (Canvas plus+ controls) — **your own project components**, and any **`.esprefab` prefab** in the+ project. Every create path (this menu, drag-and-drop, and the automation surface) runs+ the same pipeline, so each spawn is a single undo step.- **Right-click in the Outliner** for the same actions in context, plus folders,parenting, and prefab creation.- **Drag from the Content Browser** — drop an image to spawn a Sprite, or a `.esprefab`@@ -127,7 +131,10 @@ The Outliner is the scene's hierarchy. You can:Details is the inspector for the selection. It lists every component on the entity andits fields — driven by the engine's reflection metadata, so ranges, units, enums, andtooltips come straight from the component definition. Add components, edit values, and-they're written back to the scene live. Details also serves as the **asset inspector**:+they're written back to the scene live. Fields enforce their constraints as you edit: a+**required** field is flagged when left empty, a numeric field is clamped to its+declared range on write, and dropping an asset onto a slot is rejected unless its type+matches. Details also serves as the **asset inspector**:select an asset in the Content Browser to edit its import settings or, for a material,its parameters.diff --git a/docs/astro/src/content/docs/zh-cn/guides/editor.mdx b/docs/astro/src/content/docs/zh-cn/guides/editor.mdxindex 43427d386..17fdfddb9 100644--- a/docs/astro/src/content/docs/zh-cn/guides/editor.mdx+++ b/docs/astro/src/content/docs/zh-cn/guides/editor.mdx@@ -93,8 +93,10 @@ Estella 编辑器是一个桌面应用(Electron + React),带 UE5 风格的**可有好几种加实体的方式:- **实体 → 添加实体**(或工具栏)放下一个空白 Transform 实体。-- **创建…** 打开一个实体模板的命令面板:**基础**(空)、**2D**(精灵、相机、粒子、光)、- **UI**(画布加内置 UI 控件)。+- **创建…** 打开一个生成实体的命令面板:内置类型——**空**、**精灵**、**相机**、**粒子**、+ **光**、**瓦片地图**、**Spine**、**音频**、**文本**、**形状**、**网格**、**拖尾**,以及+ **UI** 控件(画布加控件)——**你自己项目里定义的组件**,还有项目中任意 **`.esprefab` 预制体**。+ 所有创建入口(此菜单、拖拽、自动化接口)都走同一条管线,因此每次生成都是一步撤销。- **在 Outliner 里右键**在上下文里做同样的事,外加文件夹、父子关系和预制体创建。- **从内容浏览器拖拽** — 拖一张图生成精灵,或拖一个 `.esprefab` 实例化它。@@ -111,8 +113,10 @@ Outliner 是场景的层级。你可以:### Details 面板Details 是选中项的检视器。它列出实体上的每个组件及其字段——由引擎的反射元数据驱动,所以范围、-单位、枚举和 tooltip 都直接来自组件定义。加组件、改值,都会实时写回场景。Details 同时是**资产-检视器**:在内容浏览器里选中一个资产,即可编辑其导入设置,或(对材质)编辑其参数。+单位、枚举和 tooltip 都直接来自组件定义。加组件、改值,都会实时写回场景。编辑时字段会强制其+约束:**必填**字段为空时会被标红,数值字段写入时按声明范围 clamp,拖资产到槽位时类型不匹配会被+拒绝。Details 同时是**资产检视器**:在内容浏览器里选中一个资产,即可编辑其导入设置,或(对材质)+编辑其参数。## 内容浏览器