Error Unknown Cook Failure (UE 4.12)

So I’ve discovered this issue where my project refuses to build and I have no idea why? Can someone help? Here’s the log.

link text

Hello Sayvud47295,

It seems like this Ensure is blocking the process.

Ensure condition failed: AttachmentRules.LocationRule == EAttachmentRule::KeepRelative && AttachmentRules.RotationRule == EAttachmentRule::KeepRelative && AttachmentRules.ScaleRule == EAttachmentRule::KeepRelative [File:D:\Build++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\Engine\Private\Components\SceneComponent.cpp] [Line: 1482]
AttachToComponent when called from a constructor is only setting up attachment and will always be treated as KeepRelative. Consider calling SetupAttachment directly instead.

It seems that you’re using AttachToComponent in one of your constructors. The syntax for doing attachments was changed in 4.12. Here’s an excerpt from the release notes:

“Instead of direct reads of USceneComponent::AttachParent, AttachSocketName, and AttachChildren you should use GetAttachParent, GetAttachSocketName, or GetAttachChildren. Direct writes should be replaced with SetupAttachment from constructors or AttachTo once components have been registered.”

Ahh I see. I thought I was supposed to use AttachToComponent since I read it up on a forum post that Rama made. Maybe it was out dated. Thanks a lot!