UE5 移植Editor或Developer模块到Runtime
要将源码中的非运行时模块移植到Runtime下使用,个人理解就是一个解决编译报错的过程,先将目标模块复制到项目的source目录内,然后修改模块文件夹名称,修改模块.build.cs与文件夹名称保持一致
修改build.cs内的类名 ,每个模块都要修改
// Copyright Epic Games, Inc. All Rights Reserved.using UnrealBuildTool;public class RTDesktopPlatform : ModuleRules
{public RTDesktopPlatform(ReadOnlyTargetRules Target) : base(Target){PrivateIncludePaths.Add("RTDesktopPlatform/Private");PrivateDependencyModuleNames.AddRange(new string[] {"Core","ApplicationCore","Json"});if (Target.IsInPlatformGroup(UnrealPlatformGroup.Linux)){PrivateIncludePathModuleNames.AddRa