欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

UE4插件应用到项目_Missing Dependency

程序员文章站 2022-07-15 08:04:40
...


官网插件介绍

1.建立一个空项目(c++,blueprint都行)

2.plugin->NewPlugin

3.注意选择文件的时候不要选空项目的名字,需要选择插件的名字

UE4插件应用到项目_Missing Dependency

插件放进项目之后打包出现错误提示如下:(原因如上图

UE4插件应用到项目_Missing Dependency

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中是无效的,请用其他方式测试

相关标签: l