Skip to content

No overload for '__Gen_Delegate_Imp7' matches delegate 'Application.MemoryUsageChangedCallback' #1196

@LwangZg

Description

@LwangZg

Unity版本:2022.3.60f1
系统:Window11
Xlua,截止今日最新版本
Gen XLua,报错如下:
Assets\XLua\Gen\DelegatesGensBridge.cs(824,15): error CS0123: No overload for '__Gen_Delegate_Imp7' matches delegate 'Application.MemoryUsageChangedCallback'


		    if (type == typeof(UnityEngine.Application.MemoryUsageChangedCallback))
			{
			    return new UnityEngine.Application.MemoryUsageChangedCallback(__Gen_Delegate_Imp7);
			}
		public void __Gen_Delegate_Imp7(ref UnityEngine.ApplicationMemoryUsageChange p0)
		{
#if THREAD_SAFE || HOTFIX_ENABLE
            lock (luaEnv.luaEnvLock)
            {
#endif
                RealStatePtr L = luaEnv.L;
                int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference);
                ObjectTranslator translator = luaEnv.translator;
                translator.Push(L, p0);
                
                PCall(L, 1, 1, errFunc);
                
                translator.Get(L, errFunc + 1, out p0);
                
                
                LuaAPI.lua_settop(L, errFunc - 1);
                
#if THREAD_SAFE || HOTFIX_ENABLE
            }
#endif
		}

求修复

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions