发现在 UE4安装目录下找到
Engine/Bulid/BatchFiles/RunUAT.bat
修改
%UATExecutable% %* %UATCompileArg%
%UATExecutable% %* %UATCompileArg%
为
%UATExecutable% %* -VS2019=true %UATCompileArg%
就可以成功使用VS2019打包插件。
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.0",
"FriendlyName": "PlugCameraControl",
"Description": "",
"Category": "Other",
"CreatedBy": "",
"CreatedByURL": "",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "",
"EngineVersion": "4.25.0",
"CanContainContent": true,
"Installed": true,
"Modules": [
{
"Name": "PlugCameraControl",
"Type": "Runtime",
"LoadingPhase": "Default",
"WhitelistPlatforms": [
"Win64"
]
}
]
}
{
"FileVersion": 3,
"Version": 1,
"VersionName": "",
"FriendlyName": "CustomPlugins",
"Description": "",
"Category": "",
"CreatedBy": "",
"CreatedByURL": "",
"DocsURL": "",
"MarketplaceURL": "",
"SupportURL": "",
"CanContainContent": false,
"IsBetaVersion": false,
"IsExperimentalVersion": false,
"Installed": false,
"Modules": [
{
"Name": "CustomPlugins",
"Type": "Runtime",
"LoadingPhase": "PreLoadingScreen",
"WhitelistPlatforms": [
"Win64"
]
},
{
"Name": "ImageExportEditor",
"Type": "Editor",
"LoadingPhase": "PostEngineInit",
"WhitelistPlatforms": [
"Win64"
]
}
]
}
这是windows平台的,其他平台请修改对应的 .command 或者 .sh文件
网友评论