FairyGUI.ScrollPane.SetCurrentPageY C# (CSharp) Method

SetCurrentPageY() public method

public SetCurrentPageY ( int value, bool ani ) : void
value int
ani bool
return void
        public void SetCurrentPageY(int value, bool ani)
        {
            if (_yOverlap > 0)
                this.SetPosY(value * _pageSize.y, ani);
        }

Usage Example

 static int SetCurrentPageY(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         FairyGUI.ScrollPane obj = (FairyGUI.ScrollPane)ToLua.CheckObject(L, 1, typeof(FairyGUI.ScrollPane));
         int  arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetCurrentPageY(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }