Static Meshes Set Material In Packaged Game

In my project, I am creating StaticMeshes at runtime using BuildFromMeshDescriptions(). My problem is that I cannot apply a material to the created StaticMesh. Functions like StaticMesh->SetMaterial() are only available in the Editor but I want to apply materials to newly created StaticMeshes at runtime in a packaged game. Also calling StaticMeshComponent->SetMaterial does not work. I also tried adding my material to the StaticMesh via StaticMesh->GetStaticMaterials().Add(FStaticMaterial(myMaterial)).
I’ve seen similar posts, but no concrete answer so far.

The RuntimeMesh-/RealtimeMeshPlugin available on git is no option currently.

I am working with UE5.3 trying to set the material in C++ but also Blueprint suggestions are welcome.

Thanks for any suggestion!