From 6cfe734724b24deae9fddab8158bc7a1b78b322f Mon Sep 17 00:00:00 2001 From: panFD Date: Fri, 7 Aug 2026 23:18:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero=20prefab=20&=20gui):=20=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E5=A4=9A=E4=B8=AA=E8=8B=B1=E9=9B=84=E9=A2=84=E5=88=B6?= =?UTF-8?q?=E4=BD=93=E5=92=8C=E9=98=B4=E5=BD=B1UI=E7=9A=84=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修正mb1到mb6共6个英雄预制体的节点Y轴偏移与坐标数值 2. 精简shadow.prefab的冗余节点组件,调整缩放、尺寸和填充模式参数 --- assets/resources/game/gui/shadow.prefab | 193 ++---------------------- assets/resources/game/heros/mb1.prefab | 6 +- assets/resources/game/heros/mb2.prefab | 6 +- assets/resources/game/heros/mb3.prefab | 6 +- assets/resources/game/heros/mb4.prefab | 6 +- assets/resources/game/heros/mb5.prefab | 6 +- assets/resources/game/heros/mb6.prefab | 6 +- 7 files changed, 29 insertions(+), 200 deletions(-) diff --git a/assets/resources/game/gui/shadow.prefab b/assets/resources/game/gui/shadow.prefab index 670588c2..34405ef0 100644 --- a/assets/resources/game/gui/shadow.prefab +++ b/assets/resources/game/gui/shadow.prefab @@ -20,22 +20,19 @@ "_children": [ { "__id__": 2 - }, - { - "__id__": 8 } ], "_active": true, "_components": [ { - "__id__": 16 + "__id__": 8 }, { - "__id__": 18 + "__id__": 10 } ], "_prefab": { - "__id__": 20 + "__id__": 12 }, "_lpos": { "__type__": "cc.Vec3", @@ -52,8 +49,8 @@ }, "_lscale": { "__type__": "cc.Vec3", - "x": 1.6, - "y": 0.2, + "x": 1, + "y": 1, "z": 1 }, "_mobility": 0, @@ -103,7 +100,7 @@ "_lscale": { "__type__": "cc.Vec3", "x": 0.1, - "y": 1, + "y": 0.1, "z": 1 }, "_mobility": 0, @@ -130,8 +127,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 200, - "height": 20 + "width": 284, + "height": 39 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -172,7 +169,7 @@ }, "_type": 0, "_fillType": 0, - "_sizeMode": 0, + "_sizeMode": 1, "_fillCenter": { "__type__": "cc.Vec2", "x": 0, @@ -202,174 +199,6 @@ "targetOverrides": null, "nestedPrefabInstanceRoots": null }, - { - "__type__": "cc.Node", - "_name": "blue", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 9 - }, - { - "__id__": 11 - }, - { - "__id__": 13 - } - ], - "_prefab": { - "__id__": 15 - }, - "_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": 0.2, - "y": 0.2, - "z": 1 - }, - "_mobility": 0, - "_layer": 1, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 10 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 179, - "height": 179 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "50Zpp1+w1EWJcur+0brRim" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "2842dc10-d89e-4ff6-8a11-6d09bf48cf20@d02e0", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "542qw+uwVGFYHfIPm7FYB9" - }, - { - "__type__": "cc.Animation", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 8 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "playOnLoad": true, - "_clips": [ - { - "__uuid__": "8b2e64e9-6ac7-43ad-b955-aabe2c3a5b67", - "__expectedType__": "cc.AnimationClip" - } - ], - "_defaultClip": { - "__uuid__": "8b2e64e9-6ac7-43ad-b955-aabe2c3a5b67", - "__expectedType__": "cc.AnimationClip" - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "14hRfhjw9DR4jCS9aULrGW" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "eefnd533NBxL19tpkpDQLz", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, { "__type__": "cc.UITransform", "_name": "", @@ -380,7 +209,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 17 + "__id__": 9 }, "_contentSize": { "__type__": "cc.Size", @@ -408,7 +237,7 @@ }, "_enabled": false, "__prefab": { - "__id__": 19 + "__id__": 11 }, "_customMaterial": null, "_srcBlendFactor": 2, diff --git a/assets/resources/game/heros/mb1.prefab b/assets/resources/game/heros/mb1.prefab index 2490aef5..321c3893 100644 --- a/assets/resources/game/heros/mb1.prefab +++ b/assets/resources/game/heros/mb1.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 0.034, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.25, - "y": 0.7, + "x": 2, + "y": 2, "z": 1 } }, diff --git a/assets/resources/game/heros/mb2.prefab b/assets/resources/game/heros/mb2.prefab index 0eb3ea0d..2b332084 100644 --- a/assets/resources/game/heros/mb2.prefab +++ b/assets/resources/game/heros/mb2.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 2.253, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.25, - "y": 0.7, + "x": 2, + "y": 2, "z": 1 } }, diff --git a/assets/resources/game/heros/mb3.prefab b/assets/resources/game/heros/mb3.prefab index 6195e4a9..1ea38b6c 100644 --- a/assets/resources/game/heros/mb3.prefab +++ b/assets/resources/game/heros/mb3.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 1.196, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.25, - "y": 0.7, + "x": 2, + "y": 2, "z": 1 } }, diff --git a/assets/resources/game/heros/mb4.prefab b/assets/resources/game/heros/mb4.prefab index 823b76a5..3dec909d 100644 --- a/assets/resources/game/heros/mb4.prefab +++ b/assets/resources/game/heros/mb4.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 1.196, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.25, - "y": 0.6, + "x": 2, + "y": 2, "z": 1 } }, diff --git a/assets/resources/game/heros/mb5.prefab b/assets/resources/game/heros/mb5.prefab index 9627c249..0efc9d78 100644 --- a/assets/resources/game/heros/mb5.prefab +++ b/assets/resources/game/heros/mb5.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 1.196, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.26, - "y": 0.7, + "x": 2, + "y": 2, "z": 1 } }, diff --git a/assets/resources/game/heros/mb6.prefab b/assets/resources/game/heros/mb6.prefab index 98e3a52b..dff8b82c 100644 --- a/assets/resources/game/heros/mb6.prefab +++ b/assets/resources/game/heros/mb6.prefab @@ -167,7 +167,7 @@ "value": { "__type__": "cc.Vec3", "x": 0, - "y": 5, + "y": 2.253, "z": 0 } }, @@ -212,8 +212,8 @@ ], "value": { "__type__": "cc.Vec3", - "x": 0.4, - "y": 0.9, + "x": 3, + "y": 3, "z": 1 } },