diff --git a/Runtime/RecyclerView/RecyclerView.cs b/Runtime/RecyclerView/RecyclerView.cs index 09fcc09..89c9aa8 100644 --- a/Runtime/RecyclerView/RecyclerView.cs +++ b/Runtime/RecyclerView/RecyclerView.cs @@ -22,6 +22,21 @@ namespace AlicizaX.UI.RecyclerView set => alignment = value; } + [SerializeField] private RectTransform content; + + public RectTransform Content + { + get + { + if (content == null) + { + content = transform.GetChild(0).GetComponent(); + } + + return content; + } + } + [SerializeField] private Vector2 spacing; public Vector2 Spacing @@ -94,20 +109,6 @@ namespace AlicizaX.UI.RecyclerView public bool CanScroll => true; - private RectTransform content; - - public RectTransform Content - { - get - { - if (content == null) - { - content = transform.GetChild(0).GetComponent(); - } - - return content; - } - } public ViewProvider ViewProvider {