From 1bd1aa01a9313f71114bc6d198b7e2402f13418a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Fri, 15 Aug 2025 13:55:42 +0800 Subject: [PATCH] modify --- Runtime/RecyclerView/Layout/GridLayoutManager.cs | 9 ++++----- Runtime/UXComponent/UX/UXHotkey.cs | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Runtime/RecyclerView/Layout/GridLayoutManager.cs b/Runtime/RecyclerView/Layout/GridLayoutManager.cs index 2b22e4c..de1e654 100644 --- a/Runtime/RecyclerView/Layout/GridLayoutManager.cs +++ b/Runtime/RecyclerView/Layout/GridLayoutManager.cs @@ -1,17 +1,16 @@ +using System; using UnityEngine; namespace AlicizaX.UI.RecyclerView { + [Serializable] public class GridLayoutManager : LayoutManager { private Vector2 cellSize; + [SerializeField] private int cellCount; + public GridLayoutManager() - { - - } - - public GridLayoutManager(int unit = 1) { this.unit = unit; } diff --git a/Runtime/UXComponent/UX/UXHotkey.cs b/Runtime/UXComponent/UX/UXHotkey.cs index 1032b08..7ed6598 100644 --- a/Runtime/UXComponent/UX/UXHotkey.cs +++ b/Runtime/UXComponent/UX/UXHotkey.cs @@ -154,7 +154,7 @@ public static class UXButtonHotkeyExtension { if (button == null) return; -#if INPUTSYSTEM_SUPPORT + if (button._hotKeyRefrence != null) { UXHotkeyComponent.RegisterHotkey( @@ -163,7 +163,7 @@ public static class UXButtonHotkeyExtension button._hotkeyPressType ); } -#endif + } public static void UnBindHotKey(this UXButton button)