MoveToIndex() public method

public MoveToIndex ( int index ) : void
index int
return void
コード例 #1
0
    void Start()
    {
        for (int i = 0; i < 99; i++)
        {
            testList.Add(i);
        }

        LoopScrollView loopScrollView = GetComponent <LoopScrollView>();

        loopScrollView.SetData(testList);
        loopScrollView.OnItemClick = OnItemClick;
        loopScrollView.MoveToIndex(72);
    }
コード例 #2
0
 static int QPYX_MoveToIndex_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         LoopScrollView QPYX_obj_YXQP  = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L_YXQP, 1);
         int            QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
         QPYX_obj_YXQP.MoveToIndex(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
コード例 #3
0
 static int MoveToIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LoopScrollView obj  = (LoopScrollView)ToLua.CheckObject <LoopScrollView>(L, 1);
         int            arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.MoveToIndex(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }