Files
ft/CodexOutput/upserver/UnityCliLoop操作入口.md

33 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# C盘项目 Unity CLI Loop 操作入口
替代旧UnitySkills REST工作流。固定包和CLI版本2.2.0,Editor保持Unity2022.3.62f2c1。项目身份必须使用C:/projects/ft/Client绝对路径,不能省略路径误连D盘同名项目。
## 常用命令
在C:/projects/ft执行:
```powershell
uloop --version
uloop get-version --project-path C:/projects/ft/Client
uloop list --project-path C:/projects/ft/Client
uloop compile --project-path C:/projects/ft/Client --wait-for-domain-reload true
uloop get-logs --project-path C:/projects/ft/Client --log-type Error --max-count 100 --include-stack-trace true
uloop get-hierarchy --project-path C:/projects/ft/Client
```
先核对get-version返回的DataPath应为C:/projects/ft/Client/Assets,以及UnityVersion/Ver,再执行修改/PlayMode命令。当前CLI帮助中的get-project-info在服务端返回Unknown tool,故不使用;工具清单以uloop list的实际结果为准。启动Editor使用本机C:/Program Files/Unity/Hub/Editor/2022.3.62f2c1/Editor/Unity.exe;不照抄参考项目D盘可执行路径。
命令参数以`uloop <command> --help`为准。优先专用命令;缺少专用操作才使用已评审的动态C#文件,先compile-only,再执行同一文件,不提高动态代码权限。截图、日志、动态代码放C:/projects/ft/CodexOutput;保持Client/.uloop缓存被忽略。
## 验证与范围
```powershell
python CodexOutput/upserver/verify_uloop_migration.py
```
该检查验证本地包2.2.0、Unity版本、BatchMode/导入进程保护、manifest及UPM锁文件只替换工具依赖、未新增Input System、缓存忽略规则。
不使用`clear-console`来制造无错误结果,不保存/切换用户场景或清理Library来绕过检查。保留旧UnitySkills测试脚本作为历史证据,不再运行`playmode_monitor.py`和`unity_acceptance_call.py`驱动当前项目。
编辑器工具迁移不等于游戏验收完成:正式API仍是http://s101.local:18080/,后续按S0–S6执行退出、换号、失败重试及SignalR测试;真实SDK/真机项目单独验收。俱乐部、KV、删除PlayFab仍暂停。