修改
This commit is contained in:
parent
17ada293d1
commit
98444eeabb
@ -22,6 +22,21 @@ namespace AlicizaX.UI.RecyclerView
|
|||||||
set => alignment = value;
|
set => alignment = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[SerializeField] private RectTransform content;
|
||||||
|
|
||||||
|
public RectTransform Content
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = transform.GetChild(0).GetComponent<RectTransform>();
|
||||||
|
}
|
||||||
|
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[SerializeField] private Vector2 spacing;
|
[SerializeField] private Vector2 spacing;
|
||||||
|
|
||||||
public Vector2 Spacing
|
public Vector2 Spacing
|
||||||
@ -94,20 +109,6 @@ namespace AlicizaX.UI.RecyclerView
|
|||||||
|
|
||||||
public bool CanScroll => true;
|
public bool CanScroll => true;
|
||||||
|
|
||||||
private RectTransform content;
|
|
||||||
|
|
||||||
public RectTransform Content
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (content == null)
|
|
||||||
{
|
|
||||||
content = transform.GetChild(0).GetComponent<RectTransform>();
|
|
||||||
}
|
|
||||||
|
|
||||||
return content;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public ViewProvider ViewProvider
|
public ViewProvider ViewProvider
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user