UE4插件应用到项目_Missing Dependency
程序员文章站
2022-07-15 08:04:40
...
1.建立一个空项目(c++,blueprint都行)
2.plugin->NewPlugin
3.注意选择文件的时候不要选空项目的名字,需要选择插件的名字
插件放进项目之后打包出现错误提示如下:(原因如上图)
Missing Dependency,request for yourclass but it hasn't been created yet.
需要修改.uplugin文件中的相关配置
{
"FileVersion" : 3,
"Version" : 1,
"VersionName" : "1.0",
"FriendlyName" : "GetMacAdd",
"Description" : "",
"Category" : "Other",
"CreatedBy" : "",
"CreatedByURL" : "",
"DocsURL" : "",
"MarketplaceURL" : "",
"SupportURL" : "",
"EngineVersion" : "4.16.0",
"CanContainContent" : true,
"IsBetaVersion" : false,
"Installed" : true,
"RequiresBuildPlatform" : false,
"Modules" :
[
{
"Name" : "GetMacAdd",
"Type" : "Runtime",
"LoadingPhase" : "Default",
"WhitelistPlatforms" :
[
"Win64"
]
}
]
}
注意上面的"Type":"Runtime",以及"WhitelistPlatforms",这里只设置了"Win64"(后续调整其他平台:参考链接)
最后提醒下Blueprint中的PrintString API在shipping中是无效的,请用其他方式测试
上一篇: 第三方API对接常见问题
下一篇: Java虚拟机类加载机制