Component won't attach to SkeletalMesh socket

What eventually worked for me was one or more of the following:

  • Unset and reset character mesh in BP
  • Change attached mesh variable and display name
  • Comment out SetupAttachment code, compile, start engine, quit, uncomment

Annoying bug