注意事项:
1.出现警告:ERROR: Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets
制作编辑器插件,需要修改为:"Type": "Editor",
2.出现警告:Platform Android is not a valid platform to build. Check that the SDK is installed
在project中的设置中,修改所需平台,只勾选windows相关,去掉android
在插件的xxxxxx..uplugin中,找到Modules字段,添加
"WhitelistPlatforms": [
"Win64",
"Win32"
]
3.在UE5版本中:使用 PlatformAllowList ,替代:WhitelistPlatforms
在UE4版本中:使用 WhitelistPlatforms
4以下是一个示例:适用于UE4 4.20-4.27
"IsExperimentalVersion": false,
"Installed": false,
"Modules": [
{
"Name": "xxxxxxxPlugin",
"Type": "Editor",
"LoadingPhase": "PreLoadingScreen",
"AdditionalDependencies": [],
"WhitelistPlatforms": [
"Win64",
"Win32"
]
}
],
"Plugins": [
{
"Name": "EditorScriptingUtilities",
"Enabled": true
},
{
"Name": "MeshEditor",
"Enabled": true
},
{
"Name": "PythonScriptPlugin",
"Enabled": true
}
]