Dynamically created UStaticMesh (BuildFromMeshDescriptions) does not cast dynamic shadow

Hi mrZog,

How are you setting the material?
Try adding this code at the end of your beginplay before the SetRootComponent(mesh):

FMeshSectionInfo msi=mesh->GetSectionInfoMap().Get(o,0);
msi.bCastShadow=true;
mesh->GetSectionInfoMap().Set(0,0,msi);