Hi RecourseDesign,
Thanks for the reply but it doesn’t correct the problem.
I’m setting the material directly from the parent UStaticMeshComponent: mesh->SetMaterial(0, Material);
When I try to inspect FMeshSectionInfo msi = StaticMesh->GetSectionInfoMap().Get(0, 0) in debugger, msi.bCastShadow is already set to true:
| - | msi | {MaterialIndex=0 bEnableCollision=true bCastShadow=true …} | FMeshSectionInfo | |
|---|---|---|---|---|
| MaterialIndex | 0 | int | ||
| bEnableCollision | true | bool | ||
| bCastShadow | true | bool | ||
| bVisibleInRayTracing | true | bool | ||
| bAffectDistanceFieldLighting | true | bool | ||
| bForceOpaque | false | bool |