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)