UnregisterDirtyLayoutCallback() public method

public UnregisterDirtyLayoutCallback ( UnityAction action ) : void
action UnityAction
return void
Exemplo n.º 1
0
 static public int UnregisterDirtyLayoutCallback(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.Graphic         self = (UnityEngine.UI.Graphic)checkSelf(l);
         UnityEngine.Events.UnityAction a1;
         checkDelegate(l, 2, out a1);
         self.UnregisterDirtyLayoutCallback(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Exemplo n.º 2
0
    static int UnregisterDirtyLayoutCallback(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.UI.Graphic         obj  = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1);
            UnityEngine.Events.UnityAction arg0 = null;
            LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

            if (funcType2 != LuaTypes.LUA_TFUNCTION)
            {
                arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckObject(L, 2, typeof(UnityEngine.Events.UnityAction));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 2);
                arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Events.UnityAction), func) as UnityEngine.Events.UnityAction;
            }

            obj.UnregisterDirtyLayoutCallback(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 static public int UnregisterDirtyLayoutCallback(IntPtr l)
 {
     try {
         UnityEngine.UI.Graphic         self = (UnityEngine.UI.Graphic)checkSelf(l);
         UnityEngine.Events.UnityAction a1;
         LuaDelegation.checkDelegate(l, 2, out a1);
         self.UnregisterDirtyLayoutCallback(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 4
0
 static int QPYX_UnregisterDirtyLayoutCallback_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         UnityEngine.UI.Graphic         QPYX_obj_YXQP  = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L_YXQP, 1);
         UnityEngine.Events.UnityAction QPYX_arg0_YXQP = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L_YXQP, 2);
         QPYX_obj_YXQP.UnregisterDirtyLayoutCallback(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 5
0
 static int UnregisterDirtyLayoutCallback(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.UI.Graphic         obj  = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1);
         UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2);
         obj.UnregisterDirtyLayoutCallback(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int UnregisterDirtyLayoutCallback(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.UI.Graphic.UnregisterDirtyLayoutCallback");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.UI.Graphic         obj  = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1);
            UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2);
            obj.UnregisterDirtyLayoutCallback(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int UnregisterDirtyLayoutCallback(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UnityEngine.UI.Graphic         obj  = (UnityEngine.UI.Graphic)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Graphic");
        UnityEngine.Events.UnityAction arg0 = null;
        LuaTypes funcType2 = LuaDLL.lua_type(L, 2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (UnityEngine.Events.UnityAction)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Events.UnityAction));
        }
        else
        {
            LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        obj.UnregisterDirtyLayoutCallback(arg0);
        return(0);
    }
Exemplo n.º 8
0
    static int UnregisterDirtyLayoutCallback(IntPtr L)
    {
        L.ChkArgsCount(2);
        UnityEngine.UI.Graphic         obj  = (UnityEngine.UI.Graphic)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Graphic");
        UnityEngine.Events.UnityAction arg0 = null;
        LuaTypes funcType2 = L.Type(2);

        if (funcType2 != LuaTypes.LUA_TFUNCTION)
        {
            arg0 = (UnityEngine.Events.UnityAction)L.ChkUserData(2, typeof(UnityEngine.Events.UnityAction));
        }
        else
        {
            LuaFunction func = L.ChkLuaFunction(2);
            arg0 = () =>
            {
                func.Call();
            };
        }

        obj.UnregisterDirtyLayoutCallback(arg0);
        return(0);
    }