+EA 23.348 Nightly - Plugin.UI โ
September 22, 2026
1 file modified.
Important Changes โ
None.
UIList โ
cs
[NonSerialized]
public float dragScrollSpeed = 2.5f;
[NonSerialized]
public Action<object> onDragBegin;
public LayoutGroup layoutItems => _layoutItems ?? (_layoutItems = GetComponent<LayoutGroup>());
public GridLayoutGroup gridLayout => layoutItems as GridLayoutGroup;public void BeginItemDrag(UIListDragItem drag)
cs
if (callbacks.CanDragReorder(drag.item))
{
dragTarget = drag.item;
dragBeginIndex = drag.transform.GetSiblingIndex();
dragBeginIndex = (dragHoverIndex = drag.transform.GetSiblingIndex());
onDragBegin?.Invoke(drag.item);
}
}public void EndItemDrag(UIListDragItem drag)
cs
{
if (dragTarget != null)
{
int num = dragHoverIndex - dragBeginIndex;
int a = dragHoverIndex - dragBeginIndex;
dragTarget = null;
if (num != 0)
{
callbacks.OnDragReorder(drag.item, num);
}
callbacks.OnDragReorder(drag.item, a);
}
}