static int InsertView(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                obj.InsertView(arg0);
                return(0);
            }
            else if (count == 3)
            {
                ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
                int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
                UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject));
                obj.InsertView(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ShibaInu.ViewPager.InsertView"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int AddView(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
                int o = obj.AddView();
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else if (count == 2)
            {
                ShibaInu.ViewPager     obj  = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
                UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
                int o = obj.AddView(arg0);
                LuaDLL.lua_pushinteger(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: ShibaInu.ViewPager.AddView"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static int GetCurrentViewIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         int o = obj.GetCurrentViewIndex();
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetCurrentView(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ShibaInu.ViewPager     obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         UnityEngine.GameObject o   = obj.GetCurrentView();
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int OnInitializePotentialDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnInitializePotentialDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int RemoveView(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShibaInu.ViewPager     obj  = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         UnityEngine.GameObject o    = obj.RemoveView(arg0);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetViewIndex(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ShibaInu.ViewPager     obj  = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         int o = obj.GetViewIndex(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_scrollDuration(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            float ret = obj.scrollDuration;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scrollDuration on a nil value"));
        }
    }
    static int set_transformerType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager           obj  = (ShibaInu.ViewPager)o;
            ShibaInu.PageTransformerType arg0 = (ShibaInu.PageTransformerType)ToLua.CheckObject(L, 2, typeof(ShibaInu.PageTransformerType));
            obj.transformerType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transformerType on a nil value"));
        }
    }
    static int set_luaTarget(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj  = (ShibaInu.ViewPager)o;
            LuaTable           arg0 = ToLua.CheckLuaTable(L, 2);
            obj.luaTarget = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index luaTarget on a nil value"));
        }
    }
    static int set_scrollDuration(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            float arg0             = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.scrollDuration = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index scrollDuration on a nil value"));
        }
    }
    static int set_currentViewIndex(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.currentViewIndex = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index currentViewIndex on a nil value"));
        }
    }
    static int set_isVertical(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isVertical = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isVertical on a nil value"));
        }
    }
    static int set_viewSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager  obj  = (ShibaInu.ViewPager)o;
            UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
            obj.viewSize = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index viewSize on a nil value"));
        }
    }
    static int get_transformerType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager           obj = (ShibaInu.ViewPager)o;
            ShibaInu.PageTransformerType ret = obj.transformerType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index transformerType on a nil value"));
        }
    }
    static int get_currentViewIndex(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            int ret = obj.currentViewIndex;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index currentViewIndex on a nil value"));
        }
    }
 static int SetViewAt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         ShibaInu.ViewPager obj = (ShibaInu.ViewPager)ToLua.CheckObject <ShibaInu.ViewPager>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject));
         UnityEngine.GameObject o    = obj.SetViewAt(arg0, arg1);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_viewSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager  obj = (ShibaInu.ViewPager)o;
            UnityEngine.Vector2 ret = obj.viewSize;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index viewSize on a nil value"));
        }
    }
    static int get_isVertical(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ShibaInu.ViewPager obj = (ShibaInu.ViewPager)o;
            bool ret = obj.isVertical;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isVertical on a nil value"));
        }
    }