From c8944bbd666efb21ecbda917249565f6a7319643 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Sun, 29 Dec 2024 21:25:01 +0800 Subject: [PATCH] =?UTF-8?q?bug=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/Scenes/scene_Main.unity | 109 +++++++++++++++++- .../Assets/script/TanChuang/GgTanchuang.cs | 4 +- 2 files changed, 108 insertions(+), 5 deletions(-) diff --git a/meng_yao/Assets/Scenes/scene_Main.unity b/meng_yao/Assets/Scenes/scene_Main.unity index d8df8ca8..75e7c10a 100644 --- a/meng_yao/Assets/Scenes/scene_Main.unity +++ b/meng_yao/Assets/Scenes/scene_Main.unity @@ -30959,7 +30959,7 @@ PrefabInstance: - target: {fileID: 1402318480, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} propertyPath: canvas value: - objectReference: {fileID: 599549935} + objectReference: {fileID: 914645750} - target: {fileID: 2094030769, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} propertyPath: canvas value: @@ -31522,7 +31522,31 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} propertyPath: m_RootOrder - value: 1 + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3011360593699687250, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 objectReference: {fileID: 0} - target: {fileID: 3011360593759919820, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} propertyPath: m_AnchorMax.y @@ -31740,6 +31764,10 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 3215173789656602693, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 4905329732822886045, guid: a8cc81ed2c5736a46a14628d8d489ac4, type: 3} propertyPath: mygameObject value: @@ -48178,6 +48206,7 @@ MonoBehaviour: m_EditorClassIdentifier: forgingItem: {fileID: 4158769348278219310, guid: 52be06cba6f3bce409359d87a2dcda73, type: 3} Connact: {fileID: 1375383331} + forginglist: [] --- !u!1 &562128898 GameObject: m_ObjectHideFlags: 0 @@ -148656,6 +148685,17 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1722668815} m_CullTransparentMesh: 1 +--- !u!114 &1724807857 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5581523607828411299, guid: 39dbb0315453e5f4aa07018f211b959e, type: 3} + m_PrefabInstance: {fileID: 1964742055} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!1 &1725851253 GameObject: m_ObjectHideFlags: 0 @@ -170421,7 +170461,7 @@ MonoBehaviour: title: {fileID: 1964742062} balance: {fileID: 1964742060} explained: {fileID: 1964742059} - BindingTips: {fileID: 0} + BindingTips: {fileID: 1724807857} canvas: {fileID: 914645750} bendingprefab: {fileID: 724295879135203546, guid: 5509bec3adea693479f7c643f3686bb7, type: 3} --- !u!114 &1964742062 stripped @@ -198350,6 +198390,22 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 914645750} m_Modifications: + - target: {fileID: 2869265158924170702, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2869265158924170702, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2869265158924170702, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2869265158924170702, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 3440755765570656168, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} propertyPath: m_Pivot.x value: 0.5 @@ -198476,7 +198532,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 3440755767111519412, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 4 objectReference: {fileID: 0} - target: {fileID: 3440755767111519412, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} propertyPath: m_AnchoredPosition.x @@ -198526,8 +198582,53 @@ PrefabInstance: propertyPath: m_AnchoredPosition.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 6291352156879861188, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: ActiveUsers + value: + objectReference: {fileID: 8687261538848957036} + - target: {fileID: 6291352156879861188, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: Inviteuserid + value: + objectReference: {fileID: 8687261538848957034} + - target: {fileID: 6291352156879861188, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + propertyPath: Inviteusername + value: + objectReference: {fileID: 8687261538848957035} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} +--- !u!114 &8687261538848957034 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 5264550527287728563, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + m_PrefabInstance: {fileID: 8687261538848957033} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &8687261538848957035 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 2011708428327581672, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + m_PrefabInstance: {fileID: 8687261538848957033} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: +--- !u!114 &8687261538848957036 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 3542435006837509733, guid: 3f5429359ca1b1d4baad4416e9187115, type: 3} + m_PrefabInstance: {fileID: 8687261538848957033} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!222 &8852169993808461439 CanvasRenderer: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/script/TanChuang/GgTanchuang.cs b/meng_yao/Assets/script/TanChuang/GgTanchuang.cs index 13f823ae..13dd41e5 100644 --- a/meng_yao/Assets/script/TanChuang/GgTanchuang.cs +++ b/meng_yao/Assets/script/TanChuang/GgTanchuang.cs @@ -57,7 +57,9 @@ public class GgTanchuang : mount gameObject.transform.position = new Vector3(Screen.width/2,Screen.height/2,0); RectTransform re = gameObject.GetComponent(); re.offsetMin = new Vector2(0, 0); - re.offsetMax = new Vector2(0, 0); //设置他的recttransform使他能够完全填满整个屏幕 + re.offsetMax = new Vector2(0, 0); + re.localScale = Vector3.one; + //设置他的recttransform使他能够完全填满整个屏幕 gameObject.GetComponent().minHeight = 800;//设置最低高度 gameObject.GetComponent().setScrollMode(0);//设置滚动模式为滚动