记录 sample 导入脚本修正
This commit is contained in:
@@ -148,3 +148,22 @@
|
||||
|
||||
1. 下一个 preview tag 可以覆盖 `Documentation~` 空目录 warning。
|
||||
2. `Samples~/MainMenuP0` 仍需要在 Unity GUI 的 Package Manager 中人工导入,或在验证工程稳定生成 Editor 程序集后再跑自动导入脚本。
|
||||
|
||||
## 2026-06-08 MainMenuP0 手动导入与验证脚本修正
|
||||
|
||||
用户已在 `TestFlowScopePackage` 通过 Unity GUI 手动导入 `Samples~/MainMenuP0`,本地可见导入目录:
|
||||
|
||||
- `TestFlowScopePackage/Assets/Samples/FlowScope Game Core/0.2.0-preview.1/MainMenuP0`
|
||||
|
||||
导入后曾出现两个编译错误,来源均为忽略工程中的临时验证脚本 `Assets/Editor/FlowScopeSampleImportVerifier.cs`,不是 FlowScope package 本体:
|
||||
|
||||
1. `CS0104: 'PackageInfo' is an ambiguous reference between 'UnityEditor.PackageManager.PackageInfo' and 'UnityEditor.PackageInfo'`
|
||||
- 修正:使用完整类型名 `UnityEditor.PackageManager.PackageInfo.FindForAssetPath(...)`。
|
||||
2. `CS0019: Operator '==' cannot be applied to operands of type 'Sample' and '<null>'`
|
||||
- 修正:`UnityEditor.PackageManager.UI.Sample` 不能按 `null` 判断;改用 `string.IsNullOrEmpty(sample.displayName)` 判断是否找到 sample。
|
||||
|
||||
当前状态:
|
||||
|
||||
- `MainMenuP0` sample 已完成手动导入。
|
||||
- 临时验证脚本已在 `TestFlowScopePackage` 内修正。
|
||||
- Unity batchmode 在当前机器状态下仍未稳定生成指定 log 并退出,因此还不能把自动 batchmode sample 验收记为通过。
|
||||
|
||||
Reference in New Issue
Block a user