Files
esengine/packages/editor/editor-app/README_CN.md
YHH b28169b186 fix(editor): fix build errors and refactor behavior-tree architecture (#394)
* docs: add editor-app README with setup instructions

* docs: add separate EN/CN editor setup guides

* fix(editor): fix build errors and refactor behavior-tree architecture

- Fix fairygui-editor tsconfig extends path and add missing tsconfig.build.json
- Refactor behavior-tree-editor to not depend on asset-system in runtime
  - Create local BehaviorTreeRuntimeModule for pure runtime logic
  - Move asset loader registration to editor module install()
  - Add BehaviorTreeLoader for asset system integration
- Fix rapier2d WASM loader to not pass arguments to init()
- Add WASM base64 loader config to rapier2d tsup.config
- Update README documentation and simplify setup steps
2025-12-30 11:13:26 +08:00

1.6 KiB
Raw Blame History

ESEngine 编辑器

基于 Tauri 2.x + React 18 构建的跨平台桌面可视化编辑器。

环境要求

运行编辑器前,请确保已安装以下环境:

  • Node.js >= 18.x
  • pnpm >= 10.x
  • Rust >= 1.70 (Tauri 需要)
  • 平台相关依赖
    • Windows: Microsoft Visual Studio C++ Build Tools
    • macOS: Xcode Command Line Tools (xcode-select --install)
    • Linux: 参考 Tauri 环境配置

快速开始

1. 克隆并安装

git clone https://github.com/esengine/esengine.git
cd esengine
pnpm install

2. 构建依赖

在项目根目录执行:

pnpm build:editor

3. 启动编辑器

cd packages/editor/editor-app
pnpm tauri:dev

可用脚本

脚本 说明
pnpm tauri:dev 开发模式运行编辑器(支持热重载)
pnpm tauri:build 构建生产版本应用
pnpm build:sdk 构建 editor-runtime SDK

项目结构

editor-app/
├── src/                    # React 应用源码
│   ├── components/         # UI 组件
│   ├── panels/             # 编辑器面板
│   └── services/           # 核心服务
├── src-tauri/              # Tauri (Rust) 后端
├── public/                 # 静态资源
└── scripts/                # 构建脚本

常见问题

构建错误

pnpm clean
pnpm install
pnpm build:editor

Rust/Tauri 错误

rustup update

文档

许可证

MIT License