feat(scripts): legacy-layer → Cocos prefab 批量迁移完成(7 ok / 6 expected-fail)
This commit is contained in:
@@ -0,0 +1,618 @@
|
||||
--- G:\Works\YouleGamesCocosCreator\cocoscreator_projects/YouleNexus/assets/framework/ui/prefabs/widgets/Layer614_Loading.prefab 2026-09-01 01:10:37.375090300 +0800
|
||||
+++ G:\Works\YouleGamesCocosCreator\cocoscreator_projects\YouleNexus\out\legacy-migration\Loading_Layer.prefab 2026-09-02 08:44:23.950055500 +0800
|
||||
@@ -1,7 +1,7 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
- "_name": "Layer614_Loading",
|
||||
+ "_name": "Loading_Layer",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
@@ -13,26 +13,26 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
- "_name": "Layer614_Loading",
|
||||
+ "_name": "Loading_Layer",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
- },
|
||||
- {
|
||||
- "__id__": 3
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
- "__id__": 16
|
||||
+ "__id__": 25
|
||||
+ },
|
||||
+ {
|
||||
+ "__id__": 27
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
- "__id__": 18
|
||||
+ "__id__": 28
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -44,7 +44,8 @@
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
- "z": 0
|
||||
+ "z": 0,
|
||||
+ "w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -64,27 +65,31 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
- "_name": "Bg",
|
||||
+ "_name": "group-40",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
- "_children": [],
|
||||
- "_active": true,
|
||||
- "_components": [
|
||||
+ "_children": [
|
||||
{
|
||||
- "__id__": 4
|
||||
+ "__id__": 3
|
||||
},
|
||||
{
|
||||
- "__id__": 6
|
||||
+ "__id__": 11
|
||||
+ }
|
||||
+ ],
|
||||
+ "_active": true,
|
||||
+ "_components": [
|
||||
+ {
|
||||
+ "__id__": 20
|
||||
},
|
||||
{
|
||||
- "__id__": 8
|
||||
+ "__id__": 22
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
- "__id__": 10
|
||||
+ "__id__": 23
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -96,7 +101,8 @@
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
- "z": 0
|
||||
+ "z": 0,
|
||||
+ "w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -116,24 +122,27 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
- "_name": "Msg",
|
||||
+ "_name": "载入遮罩",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
- "__id__": 1
|
||||
+ "__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
- "__id__": 11
|
||||
+ "__id__": 5
|
||||
},
|
||||
{
|
||||
- "__id__": 13
|
||||
+ "__id__": 7
|
||||
+ },
|
||||
+ {
|
||||
+ "__id__": 9
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
- "__id__": 15
|
||||
+ "__id__": 10
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -145,7 +154,8 @@
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
- "z": 0
|
||||
+ "z": 0,
|
||||
+ "w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -164,21 +174,25 @@
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
+ "__type__": "cc.CompPrefabInfo",
|
||||
+ "fileId": "bgFPcCvdzkbU3cRwe0igV9"
|
||||
+ },
|
||||
+ {
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
- "__id__": 2
|
||||
+ "__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
- "__id__": 5
|
||||
+ "__id__": 4
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
- "width": 320,
|
||||
- "height": 120
|
||||
+ "width": 1280,
|
||||
+ "height": 720
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -189,7 +203,7 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "9nSCnycEN4FqmL4nmLj5sk"
|
||||
+ "fileId": "px6CUAi7AxxBT9r4T72wlz"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Sprite",
|
||||
@@ -197,15 +211,11 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
- "__id__": 2
|
||||
+ "__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
- "__id__": 7
|
||||
- },
|
||||
- "_spriteFrame": {
|
||||
- "__uuid__": "dcc4530b-344b-40b6-8fbb-9fa35db6a289@f9941",
|
||||
- "__expectedType__": "cc.SpriteFrame"
|
||||
+ "__id__": 6
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
@@ -217,7 +227,11 @@
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
- "_type": 1,
|
||||
+ "_spriteFrame": {
|
||||
+ "__uuid__": "eabf148a-fa6a-460a-be4f-8e586eb80e07@f9941",
|
||||
+ "__expectedType__": "cc.SpriteFrame"
|
||||
+ },
|
||||
+ "_type": 0,
|
||||
"_fillType": 0,
|
||||
"_sizeMode": 0,
|
||||
"_fillCenter": {
|
||||
@@ -234,29 +248,41 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "fA/KbifYHNb6/Vu7mnxjpt"
|
||||
+ "fileId": "scizfUwnRjMB2wvcHYH3hR"
|
||||
},
|
||||
{
|
||||
- "__type__": "cc.UIOpacity",
|
||||
+ "__type__": "cc.Widget",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
- "__id__": 2
|
||||
+ "__id__": 3
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
- "__id__": 9
|
||||
+ "__id__": 8
|
||||
},
|
||||
- "opacity": 200,
|
||||
- "_opacity": 200,
|
||||
+ "_alignFlags": 24,
|
||||
+ "_target": null,
|
||||
+ "_left": 0,
|
||||
+ "_right": 0,
|
||||
+ "_top": 0,
|
||||
+ "_bottom": 0,
|
||||
+ "_horizontalCenter": 0,
|
||||
+ "_verticalCenter": 0,
|
||||
+ "_isAbsLeft": true,
|
||||
+ "_isAbsRight": true,
|
||||
+ "_isAbsTop": true,
|
||||
+ "_isAbsBottom": true,
|
||||
+ "_isAbsHorizontalCenter": true,
|
||||
+ "_isAbsVerticalCenter": true,
|
||||
+ "_originalWidth": 0,
|
||||
+ "_originalHeight": 0,
|
||||
+ "_alignMode": 2,
|
||||
+ "_lockFlags": 0,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
- "__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "0PIMkmQOfYkwW25pL09zY6"
|
||||
- },
|
||||
- {
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
@@ -264,18 +290,75 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
- "fileId": "dbVI2KWDtIkraHgTioSGca",
|
||||
+ "fileId": "UqFWnxTk8gOS4YSF8p7vTm",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
+ "__type__": "cc.Node",
|
||||
+ "_name": "载入动画",
|
||||
+ "_objFlags": 0,
|
||||
+ "__editorExtras__": {},
|
||||
+ "_parent": {
|
||||
+ "__id__": 2
|
||||
+ },
|
||||
+ "_children": [],
|
||||
+ "_active": true,
|
||||
+ "_components": [
|
||||
+ {
|
||||
+ "__id__": 13
|
||||
+ },
|
||||
+ {
|
||||
+ "__id__": 15
|
||||
+ },
|
||||
+ {
|
||||
+ "__id__": 17
|
||||
+ }
|
||||
+ ],
|
||||
+ "_prefab": {
|
||||
+ "__id__": 18
|
||||
+ },
|
||||
+ "_lpos": {
|
||||
+ "__type__": "cc.Vec3",
|
||||
+ "x": 0,
|
||||
+ "y": 0,
|
||||
+ "z": 0
|
||||
+ },
|
||||
+ "_lrot": {
|
||||
+ "__type__": "cc.Quat",
|
||||
+ "x": 0,
|
||||
+ "y": 0,
|
||||
+ "z": 0,
|
||||
+ "w": 1
|
||||
+ },
|
||||
+ "_lscale": {
|
||||
+ "__type__": "cc.Vec3",
|
||||
+ "x": 1,
|
||||
+ "y": 1,
|
||||
+ "z": 1
|
||||
+ },
|
||||
+ "_mobility": 0,
|
||||
+ "_layer": 1073741824,
|
||||
+ "_euler": {
|
||||
+ "__type__": "cc.Vec3",
|
||||
+ "x": 0,
|
||||
+ "y": 0,
|
||||
+ "z": 0
|
||||
+ },
|
||||
+ "_id": ""
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.CompPrefabInfo",
|
||||
+ "fileId": "cobDdbjKZsDYlww88xCcaN"
|
||||
+ },
|
||||
+ {
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
- "__id__": 3
|
||||
+ "__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
@@ -283,8 +366,8 @@
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
- "width": 175.703125,
|
||||
- "height": 50.4
|
||||
+ "width": 150,
|
||||
+ "height": 150
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -295,42 +378,154 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "OmseB+KMS2Umc8L5ochNhj"
|
||||
+ "fileId": "6qVhLJigTx9qcXqyATGSrT"
|
||||
},
|
||||
{
|
||||
- "__type__": "cc.Label",
|
||||
+ "__type__": "cc.ProgressBar",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
- "__id__": 3
|
||||
+ "__id__": 11
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 14
|
||||
},
|
||||
- "_string": "Loading...",
|
||||
- "_horizontalAlign": 1,
|
||||
- "_verticalAlign": 1,
|
||||
- "_actualFontSize": 40,
|
||||
- "_fontSize": 40,
|
||||
- "_fontFamily": "Arial",
|
||||
- "_lineHeight": 40,
|
||||
- "_overflow": 0,
|
||||
- "_enableWrapText": true,
|
||||
- "_font": null,
|
||||
- "_isSystemFontUsed": true,
|
||||
- "_spacingX": 0,
|
||||
- "_isItalic": false,
|
||||
- "_isBold": false,
|
||||
- "_isUnderline": false,
|
||||
- "_underlineHeight": 2,
|
||||
- "_cacheMode": 0,
|
||||
+ "_customMaterial": null,
|
||||
+ "_srcBlendFactor": 2,
|
||||
+ "_dstBlendFactor": 4,
|
||||
+ "_color": {
|
||||
+ "__type__": "cc.Color",
|
||||
+ "r": 255,
|
||||
+ "g": 255,
|
||||
+ "b": 255,
|
||||
+ "a": 255
|
||||
+ },
|
||||
+ "_spriteFrame": {
|
||||
+ "__uuid__": "e966950a-fe3c-41d9-adcb-b8950fb77ae1@f9941",
|
||||
+ "__expectedType__": "cc.SpriteFrame"
|
||||
+ },
|
||||
+ "_type": 0,
|
||||
+ "_reverse": false,
|
||||
+ "_totalLength": 100,
|
||||
+ "_progress": 0,
|
||||
+ "_barSprite": null,
|
||||
+ "_mode": 0,
|
||||
+ "_id": ""
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.CompPrefabInfo",
|
||||
+ "fileId": "wGre0V28x5HhNIL7mAKpIn"
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.Widget",
|
||||
+ "_name": "",
|
||||
+ "_objFlags": 0,
|
||||
+ "__editorExtras__": {},
|
||||
+ "node": {
|
||||
+ "__id__": 11
|
||||
+ },
|
||||
+ "_enabled": true,
|
||||
+ "__prefab": {
|
||||
+ "__id__": 16
|
||||
+ },
|
||||
+ "_alignFlags": 24,
|
||||
+ "_target": null,
|
||||
+ "_left": 0,
|
||||
+ "_right": 0,
|
||||
+ "_top": 0,
|
||||
+ "_bottom": 0,
|
||||
+ "_horizontalCenter": 0,
|
||||
+ "_verticalCenter": 0,
|
||||
+ "_isAbsLeft": true,
|
||||
+ "_isAbsRight": true,
|
||||
+ "_isAbsTop": true,
|
||||
+ "_isAbsBottom": true,
|
||||
+ "_isAbsHorizontalCenter": true,
|
||||
+ "_isAbsVerticalCenter": true,
|
||||
+ "_originalWidth": 0,
|
||||
+ "_originalHeight": 0,
|
||||
+ "_alignMode": 2,
|
||||
+ "_lockFlags": 0,
|
||||
+ "_id": ""
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.PrefabInfo",
|
||||
+ "root": {
|
||||
+ "__id__": 1
|
||||
+ },
|
||||
+ "asset": {
|
||||
+ "__id__": 0
|
||||
+ },
|
||||
+ "fileId": "3Uy5rHQp3avv1lNfD7X2vf",
|
||||
+ "instance": null,
|
||||
+ "targetOverrides": null,
|
||||
+ "nestedPrefabInstanceRoots": null
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.CompPrefabInfo",
|
||||
+ "fileId": "vx2PuAMjkkW5FPA3mZSK4L"
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.UITransform",
|
||||
+ "_name": "",
|
||||
+ "_objFlags": 0,
|
||||
+ "__editorExtras__": {},
|
||||
+ "node": {
|
||||
+ "__id__": 2
|
||||
+ },
|
||||
+ "_enabled": true,
|
||||
+ "__prefab": {
|
||||
+ "__id__": 19
|
||||
+ },
|
||||
+ "_contentSize": {
|
||||
+ "__type__": "cc.Size",
|
||||
+ "width": 1600,
|
||||
+ "height": 720
|
||||
+ },
|
||||
+ "_anchorPoint": {
|
||||
+ "__type__": "cc.Vec2",
|
||||
+ "x": 0.5,
|
||||
+ "y": 0.5
|
||||
+ },
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "MQ2+2oGKv8H/vi9QsN/5DW"
|
||||
+ "fileId": "fFXF7iGboTzCtU3S4Dc1MU"
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.Widget",
|
||||
+ "_name": "",
|
||||
+ "_objFlags": 0,
|
||||
+ "__editorExtras__": {},
|
||||
+ "node": {
|
||||
+ "__id__": 2
|
||||
+ },
|
||||
+ "_enabled": true,
|
||||
+ "__prefab": {
|
||||
+ "__id__": 21
|
||||
+ },
|
||||
+ "_alignFlags": 45,
|
||||
+ "_target": null,
|
||||
+ "_left": 0,
|
||||
+ "_right": 0,
|
||||
+ "_top": 0,
|
||||
+ "_bottom": 0,
|
||||
+ "_horizontalCenter": 0,
|
||||
+ "_verticalCenter": 0,
|
||||
+ "_isAbsLeft": true,
|
||||
+ "_isAbsRight": true,
|
||||
+ "_isAbsTop": true,
|
||||
+ "_isAbsBottom": true,
|
||||
+ "_isAbsHorizontalCenter": true,
|
||||
+ "_isAbsVerticalCenter": true,
|
||||
+ "_originalWidth": 0,
|
||||
+ "_originalHeight": 0,
|
||||
+ "_alignMode": 2,
|
||||
+ "_lockFlags": 0,
|
||||
+ "_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -340,12 +535,16 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
- "fileId": "26xRcf0sBATa8tQfMVwsc6",
|
||||
+ "fileId": "5WeBAyT302zJ9aNOkTg7NR",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
+ "__type__": "cc.CompPrefabInfo",
|
||||
+ "fileId": "lP9iaJKVN8EdQqyVTQvy9a"
|
||||
+ },
|
||||
+ {
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
@@ -355,12 +554,12 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
- "__id__": 17
|
||||
+ "__id__": 24
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
- "width": 100,
|
||||
- "height": 100
|
||||
+ "width": 1600,
|
||||
+ "height": 720
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
@@ -371,7 +570,39 @@
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
- "fileId": "NSvhOlPaO79ZOG50Gznx3f"
|
||||
+ "fileId": "gngVZAms0UeFVhJysk9GUc"
|
||||
+ },
|
||||
+ {
|
||||
+ "__type__": "cc.Widget",
|
||||
+ "_name": "",
|
||||
+ "_objFlags": 0,
|
||||
+ "__editorExtras__": {},
|
||||
+ "node": {
|
||||
+ "__id__": 1
|
||||
+ },
|
||||
+ "_enabled": true,
|
||||
+ "__prefab": {
|
||||
+ "__id__": 26
|
||||
+ },
|
||||
+ "_alignFlags": 45,
|
||||
+ "_target": null,
|
||||
+ "_left": 0,
|
||||
+ "_right": 0,
|
||||
+ "_top": 0,
|
||||
+ "_bottom": 0,
|
||||
+ "_horizontalCenter": 0,
|
||||
+ "_verticalCenter": 0,
|
||||
+ "_isAbsLeft": true,
|
||||
+ "_isAbsRight": true,
|
||||
+ "_isAbsTop": true,
|
||||
+ "_isAbsBottom": true,
|
||||
+ "_isAbsHorizontalCenter": true,
|
||||
+ "_isAbsVerticalCenter": true,
|
||||
+ "_originalWidth": 0,
|
||||
+ "_originalHeight": 0,
|
||||
+ "_alignMode": 2,
|
||||
+ "_lockFlags": 0,
|
||||
+ "_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
@@ -381,7 +612,7 @@
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
- "fileId": "82nnbSyS9L0ZEBspwvCtTr",
|
||||
+ "fileId": "iEisngIKkv38WihERwsgth",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
Reference in New Issue
Block a user