From cc3938d5f4b470620c79c0c84ef56564b8e8ed07 Mon Sep 17 00:00:00 2001 From: Shiliang Date: Wed, 27 May 2026 16:29:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0UI=E8=B7=AF=E5=BE=84=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=A0=B8=E5=BF=83=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E8=B7=AF=E5=BE=84=E3=80=81=E5=B7=A5=E5=85=B7=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E8=B7=AF=E5=BE=84=E3=80=81=E6=96=87=E6=A1=A3=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E5=92=8C=E5=91=BD=E4=BB=A4=E8=A7=A6=E5=8F=91=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 03_核心功能/UI/UI开发指南.md | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/03_核心功能/UI/UI开发指南.md b/03_核心功能/UI/UI开发指南.md index ea5efdd..31ad8f1 100644 --- a/03_核心功能/UI/UI开发指南.md +++ b/03_核心功能/UI/UI开发指南.md @@ -137,11 +137,36 @@ public class CardItem : AbsListItem ## 六、开发规范 ### 6.1 文件路径 -| 类型 | 路径 | -|-----|------| -| 脚本 | `Assets/Game/GameHFScripte/GameFunction/UIWindows/{Name}/` | -| 预制体 | `Assets/Game/GameHFResource/CN/UIWindows/{Name}/` | -| 图片 | `Assets/Game/GameHFResource/CN/SpriteAtlas/{Name}/` | + +#### 6.1.1 核心资源路径 + +| 类型 | 路径 | 说明 | +|-----|------|------| +| **窗口脚本** | `Assets/Game/GameHFScripte/GameFunction/UIWindows/{WindowName}/` | 窗口逻辑脚本存放目录 | +| **窗口预制体** | `Assets/Game/GameHFResource/CN/UIWindows/{WindowName}/` | UI窗口预制体存放目录 | +| **图标图集** | `Assets/Game/GameHFResource/CN/SpriteAtlas/{AtlasName}/` | SpriteAtlas图集资源 | +| **字体资源** | `Assets/Game/GameHFResource/CN/Fonts/` | 字体文件存放目录 | + +#### 6.1.2 工具脚本路径 + +| 工具名称 | 路径 | 职责 | +|---------|------|------| +| **UIPrefabGenerator** | `Assets/Editor/Command/UIPrefabGenerator.cs` | JSON转UI预制体 | +| **UIPrefabToJson** | `Assets/Editor/Command/UIPrefabToJson.cs` | 预制体转JSON | +| **RemoteCommand** | `Assets/Editor/Command/RemoteCommand.cs` | 外部命令接口 | +| **ExternalCommandListener** | `Assets/Editor/Command/ExternalCommandListener.cs` | 外部命令监听器 | + +#### 6.1.3 文档路径 + +| 文档名称 | 路径 | +|---------|------| +| UI开发指南 | `UnityAI/03_核心功能/UI/UI开发指南.md` | +| UI界面拼接设计指南 | `UnityAI/03_核心功能/UI/UI界面拼接设计指南.md` | + +#### 6.1.4 命令触发路径 + +- **触发文件**: `{ProjectRoot}/Trigger_Command.txt` +- **JSON配置**: `Assets/Editor/UI/{WindowName}.json` ### 6.2 性能优化 - 使用对象池复用UI元素