Build the string first and then use FName().
FString myString = // build your string however
WeakPoint->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepRelativeTransform, FName(*myString)));
Build the string first and then use FName().
FString myString = // build your string however
WeakPoint->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepRelativeTransform, FName(*myString)));