public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.UI.MaskableGraphic.CullStateChangedEvent o;
         o=new UnityEngine.UI.MaskableGraphic.CullStateChangedEvent();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
コード例 #2
0
    static int get_onCullStateChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.MaskableGraphic obj = (UnityEngine.UI.MaskableGraphic)o;
            UnityEngine.UI.MaskableGraphic.CullStateChangedEvent ret = obj.onCullStateChanged;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onCullStateChanged on a nil value"));
        }
    }
    static int set_onCullStateChanged(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.MaskableGraphic obj = (UnityEngine.UI.MaskableGraphic)o;
            UnityEngine.UI.MaskableGraphic.CullStateChangedEvent arg0 = (UnityEngine.UI.MaskableGraphic.CullStateChangedEvent)ToLua.CheckObject <UnityEngine.UI.MaskableGraphic.CullStateChangedEvent>(L, 2);
            obj.onCullStateChanged = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onCullStateChanged on a nil value"));
        }
    }
コード例 #4
0
        static StackObject *set_onCullStateChanged_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.UI.MaskableGraphic.CullStateChangedEvent @value = (UnityEngine.UI.MaskableGraphic.CullStateChangedEvent) typeof(UnityEngine.UI.MaskableGraphic.CullStateChangedEvent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.UI.MaskableGraphic instance_of_this_method = (UnityEngine.UI.MaskableGraphic) typeof(UnityEngine.UI.MaskableGraphic).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.onCullStateChanged = value;

            return(__ret);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.UI.MaskableGraphic.CullStateChangedEvent __cl_gen_ret = new UnityEngine.UI.MaskableGraphic.CullStateChangedEvent();
                    translator.Push(L, __cl_gen_ret);

                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.MaskableGraphic.CullStateChangedEvent constructor!"));
        }
    static int get_onCullStateChanged(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.UI.MaskableGraphic.onCullStateChanged");
#endif
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.UI.MaskableGraphic obj = (UnityEngine.UI.MaskableGraphic)o;
            UnityEngine.UI.MaskableGraphic.CullStateChangedEvent ret = obj.onCullStateChanged;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onCullStateChanged on a nil value"));
        }
    }
    static int _CreateUnityEngine_UI_MaskableGraphic_CullStateChangedEvent(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.UI.MaskableGraphic.CullStateChangedEvent obj = new UnityEngine.UI.MaskableGraphic.CullStateChangedEvent();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.UI.MaskableGraphic.CullStateChangedEvent.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }