我们来谈谈微软的大坑:当打开hololens项目文件的时候,报错:

The 'UXTools' plugin was designed for build 5.0.3. Attempt to load it anyway?

'GraphicsToolsExamples' is Incompatible

The 'GraphicsToolsExamples' plugin was designed for build 5.0.3. Attempt to load it anyway?

但是不影响项目运行,可是打包的时候会报错:

UATHelper: 打包 (HoloLens): LogBlueprint: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWNnew
UATHelper: 打包 (HoloLens): LogBlueprint: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWNnew

PackagingResults: Warning: Plugin 'UXTools' is not compatible with the current engine version (5.0.3)
PackagingResults: Warning: Engine version string in E:/UEPJSPEED/DELTEST0308/Plugins/GraphicsTools/GraphicsTools.uplugin could not be parsed ("5.0")
PackagingResults: Warning: Plugin 'GraphicsToolsExamples' is not compatible with the current engine version (5.0.3)

PackagingResults: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWN
PackagingResults: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWN

Display: LogBlueprint: Error: [AssetLog] E:\UEPJSPEED\DELTEST0308\Content\config1\MRPAWNnew.uasset: [Compiler] 生成节点 生成Actor NONE 必须指定一个 Class 。 from Source: /Game/config1/MRPAWNnew.MRPAWN

最终提示:

UATHelper: 打包 (HoloLens): ERROR: Cook failed.
UATHelper: 打包 (HoloLens): (see C:\Users\XXXXX\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+unreal+UE_5.0\Log.txt for full exception trace)
UATHelper: 打包 (HoloLens): Autom+ationTool executed for 0h 0m 18s
UATHelper: 打包 (HoloLens): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: 打包 (HoloLens): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

于是打包失败

一开始看不出来是为什么失败了,为什么打包错误,最终发现是插件并未正常打包,导致有缺失,实际上和项目没有任何关系。

解决办法是:用文本编辑器打开插件目录下的UXTools.uplugin,修改"EngineVersion": "5.0.3"这段话

但是我明明把 "EngineVersion": "5.0.3"修改成了我当前的版本5.0.3,还是会弹出提示窗口:

最后发现把
GraphicsTools.uplugin

GraphicsToolsExamples.uplugin

UXTools.uplugin

里面所有的引擎版本修改为: "EngineVersion": "5.0.0"

OK,打开项目插件完全正常加载,解决问题 。

打包成功