假如Package 项目时,出现
Error: === Handled ensure: ===
LogOutputDevice: Error:
Error: Ensure condition failed: ChildActorTemplate == nullptr [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\ChildActorComponent.cpp] [Line: 95]
LogOutputDevice: Error: Found unexpected ChildActorTemplate LinkerPlaceholderExportObject /Game/GameEditor/EditorPrograms/Map/Blueprint/BP_1.PLACEHOLDER-INST_of_PLACEHOLDER-CLASS__UMG_C_1 when ChildActorClass is null
Error: [Callstack] 0x00000000EFD42786 UE4Editor-Core.dll!UnknownFunction []
ChildActorComponent组件链接出错时。
解决办法:
1.打开BP_1蓝图, 查看BP_1的ChildActorComponent组件.
2.
3. 取消 Editable when inheriteed即可编译成功。原因是引擎的BUG导致引擎初始化时对ChildActorComponent出问题。