Unable to attach Procedural Mesh Actor to Level Actor

I am trying to spawn a procedural mesh actor and then attach it to a actor present in the world.

These are the steps I am following -

ProceduralMesh->CreateMeshSection(1, Vertices, Triangles, Normals, UVs, VertexColors, Tangents, true);

Next,

ProceduralMeshActor->AttachToActor(GenericActor, FAttachmentTransformRules::SnapToTargetNotIncludingScale);
ProceduralMeshActor->SetOwner(GenericActor);

Nothing seems to be working. I am able to spawn all the ProceduralMeshActors but I am just not able to attach this spawned ProceduralMeshActor to GenericActor.

I basically want to do the “Attach To” operation which we do in the World Outliner in the Editor.

I feel like I’m missing something obvious. Any help is greatly appreciated. Thanks in advance.