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/Layer10_Protocol.prefab 2026-09-01 01:11:57.893374800 +0800
+++ YouleNexus\out\legacy-migration\Protol_Layer.prefab 2026-09-02 08:34:28.171418700 +0800
+++ YouleNexus\out\legacy-migration\Protol_Layer.prefab 2026-09-02 08:45:03.732546300 +0800
@@ -1,7 +1,7 @@
[
{
@@ -9,7 +9,7 @@
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
@@ -13,32 +13,22 @@
@@ -13,32 +13,26 @@
},
{
"__type__": "cc.Node",
@@ -18,9 +18,9 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
- "_children": [
- {
- "__id__": 2
"_children": [
{
"__id__": 2
- },
- {
- "__id__": 3
@@ -30,9 +30,8 @@
- },
- {
- "__id__": 5
- }
- ],
+ "_children": [],
}
],
"_active": true,
"_components": [
{
@@ -49,7 +48,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -50,7 +40,8 @@
@@ -50,7 +44,8 @@
"__type__": "cc.Quat",
"x": 0,
"y": 0,
@@ -59,7 +58,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -70,125 +61,37 @@
@@ -70,125 +65,37 @@
},
{
"__type__": "cc.Node",
@@ -194,7 +193,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -200,7 +103,8 @@
@@ -200,7 +107,8 @@
"__type__": "cc.Quat",
"x": 0,
"y": 0,
@@ -204,7 +203,7 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -220,43 +124,40 @@
@@ -220,43 +128,40 @@
},
{
"__type__": "cc.Node",
@@ -258,12 +257,12 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -275,21 +176,25 @@
@@ -275,21 +180,25 @@
"_id": ""
},
{
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "x0IvAcFprR09jBj3F9ZqfM"
+ "fileId": "Bc34HG9pqqr62i3Yt8y7oL"
+ },
+ {
"__type__": "cc.UITransform",
@@ -288,16 +287,16 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -300,7 +205,7 @@
@@ -300,7 +209,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "oXaUBE5FadJPKPV1kNBwB2"
+ "fileId": "k27YpdDROJN3PwtpFBqu2X"
+ "fileId": "B6B3jI1NQwoddgPYj0pk5X"
},
{
"__type__": "cc.Sprite",
@@ -308,15 +213,11 @@
@@ -308,15 +217,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
@@ -315,7 +314,7 @@
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -328,7 +229,11 @@
@@ -328,7 +233,11 @@
"b": 255,
"a": 255
},
@@ -328,12 +327,12 @@
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
@@ -345,29 +250,41 @@
@@ -345,29 +254,41 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "6Kb2nGRMAooTyFfd3Lyehj"
+ "fileId": "4kra9jO2Upq0a8CDkFGk6y"
+ "fileId": "sZRQwrbf1FlCZZVxt3RdFM"
},
{
- "__type__": "cc.UIOpacity",
@@ -380,12 +379,12 @@
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
@@ -375,151 +292,174 @@
@@ -375,151 +296,174 @@
"asset": {
"__id__": 0
},
- "fileId": "12kemrqntATYjK8nnBs4cG",
+ "fileId": "A2rJprBVu5rQ1lfyfhnoE1",
+ "fileId": "TBRlxqRlqNf5udI0qEObLJ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -461,7 +460,7 @@
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "6fuT3QWjUGU74W2qJnikSF"
+ "fileId": "1tAFH2qR4PNs5TcEj9WbBN"
+ "fileId": "IhoTFvDhihla8gCAED5M57"
},
{
- "__type__": "cc.Label",
@@ -523,7 +522,7 @@
- "instance": null,
- "targetOverrides": null,
- "nestedPrefabInstanceRoots": null
+ "fileId": "H0F6KOqTnrFHqBlxYya7nW"
+ "fileId": "dV6uRRNAxMdqX7rezx2wsp"
},
{
- "__type__": "cc.UITransform",
@@ -579,7 +578,7 @@
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "dPEVXxMhCo5XiYvPRL9RMs"
+ "fileId": "8BOyuPKPZHetZAnf80c7wu"
+ "fileId": "DMpXRTjruPOQHk2MOZ6Twx"
},
{
- "__type__": "cc.Label",
@@ -641,12 +640,12 @@
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
@@ -527,43 +467,47 @@
@@ -527,43 +471,47 @@
"asset": {
"__id__": 0
},
- "fileId": "91FXgVD3NDxoCyE64MzU0Q",
+ "fileId": "zMXkBOeB9BIiYszl2FyzWz",
+ "fileId": "BSdW43S4uQDqGA9Yz3eKkV",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -667,12 +666,12 @@
{
- "__id__": 24
+ "__id__": 21
+ },
+ {
+ "__id__": 23
},
{
- "__id__": 26
+ "__id__": 23
+ },
+ {
+ "__id__": 25
}
],
@@ -698,12 +697,12 @@
},
"_lscale": {
"__type__": "cc.Vec3",
@@ -582,21 +526,25 @@
@@ -582,21 +530,25 @@
"_id": ""
},
{
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "R4LbfxF9leygoYiRZDazU1"
+ "fileId": "MsFDTjsRppAbTiwMaXgGTa"
+ },
+ {
"__type__": "cc.UITransform",
@@ -728,12 +727,12 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -607,42 +555,84 @@
@@ -607,42 +559,84 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "2lh0VzkfUMMVkQWokCZzYz"
+ "fileId": "uzrkcGNHVyWfKzKkcHwPMk"
+ "fileId": "Ffzu9dTuFBVOoyFTM2sd9f"
},
{
- "__type__": "cc.Label",
@@ -763,6 +762,14 @@
+ "_spriteFrame": {
+ "__uuid__": "998850c4-7861-4c12-8cb4-be7a7415c42a@f9941",
+ "__expectedType__": "cc.SpriteFrame"
+ },
+ "_type": 0,
+ "_fillType": 0,
+ "_sizeMode": 0,
+ "_fillCenter": {
+ "__type__": "cc.Vec2",
+ "x": 0,
+ "y": 0
},
- "_string": "同意",
- "_horizontalAlign": 1,
@@ -781,14 +788,6 @@
- "_isUnderline": false,
- "_underlineHeight": 2,
- "_cacheMode": 0,
+ "_type": 0,
+ "_fillType": 0,
+ "_sizeMode": 0,
+ "_fillCenter": {
+ "__type__": "cc.Vec2",
+ "x": 0,
+ "y": 0
+ },
+ "_fillStart": 0,
+ "_fillRange": 0,
+ "_isTrimmedMode": true,
@@ -799,7 +798,7 @@
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "hJE0C+184TvFR8bGendFq3"
+ "fileId": "n4E6Phc2Du7834JbFXg4nd"
+ "fileId": "eNEFpALsFqSYRMKBbI35Xv"
+ },
+ {
+ "__type__": "cc.Widget",
@@ -835,12 +834,12 @@
},
{
"__type__": "cc.PrefabInfo",
@@ -652,27 +642,84 @@
@@ -652,27 +646,84 @@
"asset": {
"__id__": 0
},
- "fileId": "0foVnezLdMaKOM1JSMLNEY",
+ "fileId": "297AVROK4atf6oUqkN1hbU",
+ "fileId": "a2OqsVaMoVd6ytsdjR5HsJ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
@@ -900,7 +899,7 @@
+ },
+ {
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "MXs4krBnTwKs9jcRoWsoue"
+ "fileId": "tnMhPyZCiweDR17uayu0Dm"
+ },
+ {
"__type__": "cc.UITransform",
@@ -925,16 +924,16 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -683,7 +730,7 @@
@@ -683,7 +734,7 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "b1ZgddyJxPMx64lUDbs5Ht"
+ "fileId": "RSxoUbKQ13s5FDPa4S8stK"
+ "fileId": "Yd148vq4UElV19Oumdsvi3"
},
{
"__type__": "cc.Sprite",
@@ -691,15 +738,11 @@
@@ -691,15 +742,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
@@ -952,7 +951,7 @@
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -711,7 +754,11 @@
@@ -711,7 +758,11 @@
"b": 255,
"a": 255
},
@@ -965,12 +964,12 @@
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
@@ -728,65 +775,116 @@
@@ -728,65 +779,116 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "zIQRK9nIRNfXI1eAmamlv+"
+ "fileId": "S8Gp4f43opGMNFU8yqYvIr"
+ "fileId": "3VEGZNpTd8qZkFK6Rrra4E"
},
{
- "__type__": "cc.Button",
@@ -1035,14 +1034,14 @@
- "g": 255,
- "b": 255,
- "a": 255
+ "fileId": "F94TpZYd1zvtC2C8Nuvc9j",
+ "fileId": "l5rjLCKVe490Tv1wFJRrDf",
+ "instance": null,
+ "targetOverrides": null,
+ "nestedPrefabInstanceRoots": null
+ },
+ {
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "CpXRd4oB7tzsDjXicMDoBj"
+ "fileId": "Op0C6lW9oiozuWBt0I6mbt"
+ },
+ {
+ "__type__": "cc.UITransform",
@@ -1086,7 +1085,7 @@
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "yfJ5G/LeFUJFLlB39J+0+C"
+ "fileId": "2ENhII9krOzYmsdNNyONVy"
+ "fileId": "UQbdRmgN3VpIf0eBGKRuMN"
+ },
+ {
+ "__type__": "cc.Widget",
@@ -1122,25 +1121,25 @@
},
{
"__type__": "cc.PrefabInfo",
@@ -796,12 +894,16 @@
@@ -796,12 +898,16 @@
"asset": {
"__id__": 0
},
- "fileId": "f7LFsNystNUqYo2DwvY0qM",
+ "fileId": "Qt4q2pzjFx5f5d4OA92IMG",
+ "fileId": "ViVuA8fZgijO5xDrE6MofW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
+ "__type__": "cc.CompPrefabInfo",
+ "fileId": "9JRbFTOp1wkFliPtymUsWo"
+ "fileId": "SYgxcIVfCQ0rK2PDCAVlvp"
+ },
+ {
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
@@ -811,12 +913,12 @@
@@ -811,12 +917,12 @@
},
"_enabled": true,
"__prefab": {
@@ -1156,12 +1155,12 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -827,7 +929,39 @@
@@ -827,7 +933,39 @@
},
{
"__type__": "cc.CompPrefabInfo",
- "fileId": "zQumdxaGzk8Ue2+Mf+gDOO"
+ "fileId": "bxFGsUwP3dv7LOuTH9hMVB"
+ "fileId": "yDMUV9sUeZSZ4fZfqQT2aw"
+ },
+ {
+ "__type__": "cc.Widget",
@@ -1197,12 +1196,12 @@
},
{
"__type__": "cc.PrefabInfo",
@@ -837,7 +971,7 @@
@@ -837,7 +975,7 @@
"asset": {
"__id__": 0
},
- "fileId": "ffywZn4uVL7aw3Apw1z+al",
+ "fileId": "9oCxJX1UEvxpUeW4I1c8XL",
+ "fileId": "2EpIxmBasuffqQyPlMKTQI",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null