From e4556286ff3ce022a72ade91cf85cabc6bff70fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=E8=99=9E=E6=B8=A0=E6=88=90=E2=80=9D?= <“yuqucheng2006@qq.com”> Date: Wed, 26 Aug 2026 09:43:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui/homepage/=E8=AE=BE=E5=A4=87=E8=AF=B4?= =?UTF-8?q?=E6=98=8E):=20=E8=B0=83=E6=95=B4=E5=B8=83=E5=B1=80=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E8=BE=B9=E8=B7=9D=EF=BC=8C=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E7=9A=84Start=E5=88=9D=E5=A7=8B=E5=8C=96=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 调整了首页设备说明预制体的m_Bottom布局边距从0改为30,修复布局偏移问题 2. 移除了DeviceTeachingPage中冗余的自动调用Init的Start方法 --- Assets/Res/ui/homepage/消息详情.prefab | 2 +- Assets/Scripts/UI/Pages/SelfPage/DeviceTeachingPage.cs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Res/ui/homepage/消息详情.prefab b/Assets/Res/ui/homepage/消息详情.prefab index fa0c868..776ede2 100644 --- a/Assets/Res/ui/homepage/消息详情.prefab +++ b/Assets/Res/ui/homepage/消息详情.prefab @@ -240,7 +240,7 @@ MonoBehaviour: m_Left: 0 m_Right: 0 m_Top: 0 - m_Bottom: 0 + m_Bottom: 30 m_ChildAlignment: 1 m_Spacing: 45 m_ChildForceExpandWidth: 1 diff --git a/Assets/Scripts/UI/Pages/SelfPage/DeviceTeachingPage.cs b/Assets/Scripts/UI/Pages/SelfPage/DeviceTeachingPage.cs index fe6c7c7..ab550c6 100644 --- a/Assets/Scripts/UI/Pages/SelfPage/DeviceTeachingPage.cs +++ b/Assets/Scripts/UI/Pages/SelfPage/DeviceTeachingPage.cs @@ -13,9 +13,6 @@ namespace Kill.UI.Pages public GameObject videoPlane; public VideoCtrl videoCtrl; public List deviceTeachingVideos; - private void Start() { - Init(null); - } public void Init(Action callback) { this.callback=callback;