ScrollPanel

ScrollPanel中有GetFirstChildInView 那么有获取最后一个显示的方法吗
已邀请:

UnityMonstar

赞同来自:

是我想多了 
    virtual public int GetLastChildInView()
        {
            int cnt = _children.Count;
            return cnt - 1;
        }

 
  public override int GetLastChildInView()
        {
            return ChildIndexToItemIndex(base.GetLastChildInView());   
        }
多添加了一个方法  可以获取当前Panel下最后一个显示的

要回复问题请先登录注册