yyl
2026-01-15 bface07b5ea879e40f5be8d082bfa77fb873b0bd
Main/System/Scroll/ScrollerController.cs
@@ -13,8 +13,8 @@
    LockVerticalTop,
    LockVerticalBottom,
    KeepHorizon,
    KeepVertical,
    KeepVertical2,
    KeepVertical,   //在滚动视图内容更新或刷新时,保持当前位置不变 置顶显示
    KeepVertical2,  //在滚动视图内容更新或刷新时,保持当前位置不变 置底显示
}
public class ScrollerController : MonoBehaviour, IEnhancedScrollerDelegate {
@@ -110,7 +110,7 @@
    }
    // 获取总的Cell数目(含不显示的)
    public int GetNumberOfCells()
    public int GetCellTotalCount()
    {
        return _data.Count;
    }
@@ -400,6 +400,7 @@
        lastDataCnt = _data.Count;
    }
    //index 是按addcell的顺序,包含所有层级
    public void JumpIndex(int index)
    {
        if (!inited)