Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于ue5.5的UnLuaDefaultParamCollectorUbtPlugin编译报错 #741

Open
scrollabout opened this issue Feb 5, 2025 · 1 comment
Open

Comments

@scrollabout
Copy link

我改了两个位置,但不知道这样的改动是否会影响
一、UnLuaDefaultParamCollectorUbtPlugin.ubtplugin.csproj里面的<TargetFramework>net6.0</TargetFramework>改成<TargetFramework>net8.0</TargetFramework>
二、UnLuaDefaultParamCollectorUbtPlugin.cs里面的Generate函数改成

private void Generate()
        {
            foreach (UhtModule module in Session.Modules)
            {
                foreach (UhtPackage package in module.Packages)
                {
                    var moduleType = package.Module.Module.ModuleType;
                    ParseModule(package.Module.Module.Name, moduleType, package.Module.Module.OutputDirectory);
                    if (moduleType != UHTModuleType.EngineRuntime && moduleType != UHTModuleType.GameRuntime)
                    {
                        continue;
                    }
                    QueueClassExports(package, package);
                }
            }
            // Wait for all the classes to export
            Finish();
        }
Image
@scrollabout scrollabout changed the title ue5.5的UnLuaDefaultParamCollectorUbtPlugin编译报错 关于ue5.5的UnLuaDefaultParamCollectorUbtPlugin编译报错 Feb 5, 2025
@scrollabout
Copy link
Author

官方的提交记录,应该是UHT的导出逻辑改了,导致所有依赖到UHT导出的插件都要改一遍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant