From 29d154061ab1a0d37a08e4cf86e967ba0fd5c5ca Mon Sep 17 00:00:00 2001 From: MuHua-123 <136542559+MuHua-123@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ModuleUIPanel/UIScrollViewList/UIScrollViewListH.cs | 3 ++- .../ModuleUIPanel/UIScrollViewList/UIScrollViewListV.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListH.cs b/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListH.cs index 3843187..aadfec9 100644 --- a/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListH.cs +++ b/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListH.cs @@ -12,7 +12,8 @@ namespace MuHua { private ModuleUIItems Items;// UI项容器 - public UIScrollViewListH(VisualElement element, VisualElement canvas, VisualTreeAsset templateAsset, Func generate) : base(element, canvas) { + public UIScrollViewListH(VisualElement element, VisualElement canvas, VisualTreeAsset templateAsset, + Func generate, UIDirection direction = UIDirection.FromLeftToRight) : base(element, canvas, direction) { Items = new ModuleUIItems(Container, templateAsset, generate); } /// 释放资源 diff --git a/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListV.cs b/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListV.cs index cb11ce1..b980a54 100644 --- a/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListV.cs +++ b/Packages/UITool/Runtime/ModuleUIPanel/UIScrollViewList/UIScrollViewListV.cs @@ -11,7 +11,8 @@ namespace MuHua { public class UIScrollViewListV : UIScrollViewV where T : ModuleUIItem { private ModuleUIItems Items;// UI项容器 - public UIScrollViewListV(VisualElement element, VisualElement canvas, VisualTreeAsset templateAsset, Func generate) : base(element, canvas) { + public UIScrollViewListV(VisualElement element, VisualElement canvas, VisualTreeAsset templateAsset, + Func generate, UIDirection direction = UIDirection.FromTopToBottom) : base(element, canvas, direction) { Items = new ModuleUIItems(Container, templateAsset, generate); } /// 释放资源