From 8aff20cd18a566999373105fac5389bef98efdfc Mon Sep 17 00:00:00 2001 From: "DESKTOP-DDTRVOR\\asus" <1162187704@qq.com> Date: Thu, 26 Dec 2024 11:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E5=88=B6=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Blacksmith/Assets/Pack/Prefab/Canvas.prefab | 32 ++++++++++----------- Blacksmith/Assets/Scenes/SampleScene.unity | 16 +++++++++++ Blacksmith/Assets/Script/DataManager.cs | 1 - 3 files changed, 32 insertions(+), 17 deletions(-) diff --git a/Blacksmith/Assets/Pack/Prefab/Canvas.prefab b/Blacksmith/Assets/Pack/Prefab/Canvas.prefab index 4eb4e0a6..72d0250c 100644 --- a/Blacksmith/Assets/Pack/Prefab/Canvas.prefab +++ b/Blacksmith/Assets/Pack/Prefab/Canvas.prefab @@ -3115,9 +3115,9 @@ RectTransform: m_Father: {fileID: 144238075076015718} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 0} + m_SizeDelta: {x: -17, y: -17} m_Pivot: {x: 0, y: 1} --- !u!222 &8467006183190617166 CanvasRenderer: @@ -16645,7 +16645,7 @@ RectTransform: m_Father: {fileID: 4218016023420877496} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 10, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -17429,7 +17429,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &9022315838033760693 RectTransform: m_ObjectHideFlags: 0 @@ -28150,7 +28150,7 @@ RectTransform: m_Father: {fileID: 6445997579090271823} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} @@ -32548,9 +32548,9 @@ RectTransform: m_Father: {fileID: 144238075076015718} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 0, y: 20} + m_SizeDelta: {x: -17, y: 20} m_Pivot: {x: 0, y: 0} --- !u!222 &2229132308285028401 CanvasRenderer: @@ -35888,8 +35888,8 @@ RectTransform: m_Children: [] m_Father: {fileID: 2269116551137792639} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -38315,8 +38315,8 @@ RectTransform: m_Children: [] m_Father: {fileID: 6721890462340247470} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMin: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -43837,7 +43837,7 @@ RectTransform: m_Father: {fileID: 2166383221383120049} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 10, y: 0} m_Pivot: {x: 0.5, y: 0.5} @@ -53491,9 +53491,9 @@ RectTransform: m_Father: {fileID: 144238075076015718} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: 0} + m_SizeDelta: {x: 20, y: -17} m_Pivot: {x: 1, y: 1} --- !u!222 &2631057599355912520 CanvasRenderer: @@ -55034,7 +55034,7 @@ RectTransform: m_Father: {fileID: 9054080252788686001} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} @@ -64785,7 +64785,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &3303366270476842511 RectTransform: m_ObjectHideFlags: 0 diff --git a/Blacksmith/Assets/Scenes/SampleScene.unity b/Blacksmith/Assets/Scenes/SampleScene.unity index ff195aec..a38aed4c 100644 --- a/Blacksmith/Assets/Scenes/SampleScene.unity +++ b/Blacksmith/Assets/Scenes/SampleScene.unity @@ -1316,6 +1316,14 @@ PrefabInstance: propertyPath: m_AnchorMin.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 4431084614226714391, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4431084614226714391, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 4735051682149685935, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} propertyPath: m_AnchorMax.x value: 0 @@ -1372,6 +1380,14 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 5606743370922012583, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5606743370922012583, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 5610340814941642952, guid: 0e52b314be6e069439c3bb54fb42807e, type: 3} propertyPath: m_Size value: 1 diff --git a/Blacksmith/Assets/Script/DataManager.cs b/Blacksmith/Assets/Script/DataManager.cs index feab9afb..93ca6f10 100644 --- a/Blacksmith/Assets/Script/DataManager.cs +++ b/Blacksmith/Assets/Script/DataManager.cs @@ -177,7 +177,6 @@ public static class DataManager public static void RemovePhysical() { - return; RemoveItem(1,5); }