feat(scripts): legacy-layer → Cocos prefab 批量迁移完成(7 ok / 6 expected-fail)

This commit is contained in:
2026-09-02 08:45:18 +08:00
parent 601de1f903
commit 7e0a8b79a4
16 changed files with 13949 additions and 156 deletions
@@ -1,5 +1,5 @@
--- YouleNexus/assets/framework/ui/prefabs/widgets/Layer619_BackOtherGame.prefab 2026-09-01 01:34:18.571553100 +0800
+++ YouleNexus\out\legacy-migration\BackHall_Layer.prefab 2026-09-02 08:30:19.504409200 +0800
+++ YouleNexus\out\legacy-migration\BackHall_Layer.prefab 2026-09-02 08:45:03.931491900 +0800
@@ -1,7 +1,7 @@
[
{
@@ -9,7 +9,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
@@ -13,197 +13,35 @@
@@ -13,197 +13,39 @@
},
{
"__type__": "cc.Node",
@@ -18,9 +18,9 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
- "_children": [
- {
- "__id__": 2
"_children": [
{
"__id__": 2
- },
- {
- "__id__": 3
@@ -33,11 +33,11 @@
- },
- {
- "__id__": 6
- }
- ],
- "_active": true,
- "_components": [
- {
}
],
"_active": true,
"_components": [
{
- "__id__": 50
- }
- ],
@@ -80,14 +80,13 @@
- "_parent": {
- "__id__": 1
- },
"_children": [],
"_active": true,
"_components": [
{
- "_children": [],
- "_active": true,
- "_components": [
- {
- "__id__": 7
+ "__id__": 17
},
{
- },
- {
- "__id__": 9
- },
- {
@@ -138,8 +137,9 @@
- "_components": [
- {
- "__id__": 14
- },
- {
+ "__id__": 17
},
{
- "__id__": 16
+ "__id__": 19
}
@@ -213,7 +213,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -223,7 +61,7 @@
@@ -223,7 +65,7 @@
},
{
"__type__": "cc.Node",
@@ -222,7 +222,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
@@ -231,35 +69,33 @@
@@ -231,35 +73,33 @@
},
"_children": [
{
@@ -266,7 +266,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -279,43 +115,40 @@
@@ -279,43 +119,40 @@
},
{
"__type__": "cc.Node",
@@ -321,12 +321,12 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -334,21 +167,25 @@
@@ -334,21 +171,25 @@
"_id": ""
},
{
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "Pda866NWkdQmjRO6KXJuOY"
+ "fileId": "lgvoSUemylfiHKFuWFPrqX"
+ },
+ {
"__type__": "cc.UITransform",
@@ -351,12 +351,12 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -359,23 +196,19 @@
@@ -359,23 +200,19 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "Nz93+bSWC6Lz1cqasxtq7T"
+ "fileId": "X9Ol3V2LBqVbnRM6MhOLyz"
+ "fileId": "LUTmhhVpqmVn2kRVYdSgxQ"
},
{
- "__type__": "cc.Sprite",
@@ -379,7 +379,7 @@
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -387,88 +220,24 @@
@@ -387,88 +224,24 @@
"b": 255,
"a": 255
},
@@ -471,7 +471,7 @@
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "qSYnT1cR5lVp3mlhpxSvWC"
+ "fileId": "J3KwtsMdpurmWVjh9Eh7Kp"
+ "fileId": "rghHHiUfsTaKB6HqUSMPkz"
},
{
- "__type__": "cc.Label",
@@ -479,7 +479,7 @@
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@@ -477,32 +246,29 @@
@@ -477,32 +250,29 @@
},
"_enabled": true,
"__prefab": {
@@ -503,14 +503,14 @@
- "_isUnderline": false,
- "_underlineHeight": 2,
- "_cacheMode": 0,
+ "_alignFlags": 45,
+ "_alignFlags": 24,
+ "_target": null,
+ "_left": 0,
+ "_right": 0,
+ "_top": 0,
+ "_bottom": 0,
+ "_horizontalCenter": 0,
+ "_verticalCenter": 0,
+ "_horizontalCenter": 569.5,
+ "_verticalCenter": 168.5,
+ "_isAbsLeft": true,
+ "_isAbsRight": true,
+ "_isAbsTop": true,
@@ -531,12 +531,12 @@
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
@@ -510,135 +276,14 @@
@@ -510,135 +280,14 @@
"asset": {
"__id__": 0
},
- "fileId": "42TmR4jo5Ku4x5qSH0hBQE",
+ "fileId": "chxWR5DPKUVCzLlo5XGVvA",
+ "fileId": "YEmQgvK5JPmp4C97yoIGyw",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -665,11 +665,11 @@
- "z": 0
- },
- "_id": ""
+ "fileId": "MDZAGEVNBDRyYrq4pKFhLE"
+ "fileId": "VTWhI5Krt1Tl1PaqyNMZon"
},
{
"__type__": "cc.UITransform",
@@ -646,16 +291,16 @@
@@ -646,16 +295,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
@@ -690,12 +690,12 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -666,44 +311,41 @@
@@ -666,44 +315,41 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "EdM76YkHb7wqTyQDtqhCSO"
+ "fileId": "jJHgeXr4FQEWQO4XIzOOHh"
+ "fileId": "yL4foD2NoKexjcw320r6Zv"
},
{
- "__type__": "cc.Label",
@@ -757,12 +757,12 @@
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
@@ -711,203 +353,14 @@
@@ -711,203 +357,14 @@
"asset": {
"__id__": 0
},
- "fileId": "6aSLwJjdJNo4N5tus4cWOO",
+ "fileId": "slVD8fJQaBPa4l52pf5IXq",
+ "fileId": "YbZwuoc1Ik2eMvbYtIThrx",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -792,7 +792,7 @@
- "_id": ""
- },
- {
"__type__": "cc.CompPrefabInfo",
- "__type__": "cc.CompPrefabInfo",
- "fileId": "4LJiTnsexa+c9Ug9YBpGln"
- },
- {
@@ -837,7 +837,7 @@
- "_id": ""
- },
- {
- "__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
- "fileId": "cuT2peV+ddq3jcNzZoVx5l"
- },
- {
@@ -959,11 +959,11 @@
- "z": 0
- },
- "_id": ""
+ "fileId": "ZxNiZBkby9tj7SSbfpOQmU"
+ "fileId": "Oboy7HvfDZjdE4wduUnatv"
},
{
"__type__": "cc.UITransform",
@@ -915,92 +368,16 @@
@@ -915,92 +372,16 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
@@ -1059,13 +1059,14 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -1011,126 +388,10 @@
@@ -1011,126 +392,10 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "AGB0G5BF1YyiNtQeJAcurv"
- },
- {
+ "fileId": "d57ausRj4Y5wkaGB3TmLhi"
},
{
- "__type__": "cc.Sprite",
- "_name": "",
- "_objFlags": 0,
@@ -1109,9 +1110,8 @@
- {
- "__type__": "cc.CompPrefabInfo",
- "fileId": "h37wdN+UgnU17SY2M12hdW"
+ "fileId": "h4SYJyuqRHeM6Xiu5UirLi"
},
{
- },
- {
- "__type__": "cc.Button",
- "_name": "",
- "_objFlags": 0,
@@ -1188,7 +1188,7 @@
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@@ -1139,25 +400,29 @@
@@ -1139,25 +404,29 @@
},
"_enabled": true,
"__prefab": {
@@ -1233,12 +1233,12 @@
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
@@ -1165,7 +430,7 @@
@@ -1165,7 +434,7 @@
"asset": {
"__id__": 0
},
- "fileId": "a0XVVb+sJBzKcACQDAyw8u",
+ "fileId": "ur25Y7TU0TKvsIbemih80X",
+ "fileId": "9E4FREnUmy3G7q42HYy9QW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null