Hello!
In UE 5.8, I’ve observed an issue with Geometry Collection Components. As I understand it, by default, the GC asset when created will use the GeometryCollectionRootProxyRenderer, but this can be overridden in the blueprint GCC.
If you don’t override the renderer and leave it to use GeometryCollectionRootProxyRenderer, when you attempt to turn off “Cast Shadows” on the component, the object still casts shadows. I’ve confirmed this is also an issue in GeometryCollectionISMPoolRenderer. If you set the custom renderer to “None” however, this issue doesn’t occur.
I’ve found a fix for GeometryCollectionRootProxyRenderer, which is the following:
void UGeometryCollectionRootProxyRenderer::CreateRootProxyComponents(UGeometryCollectionComponent& InComponent)
{
....
Line 83
MeshComponent->SetCastShadow(InComponent.CastShadow);
}
This resolves the issue.
For the GeometryCollectionISMPoolRenderer, the fix is a bit more involved, but it’s essentially caching if the component wants shadows and ensuring the flag for affects shadows is removed.
if (!bCastShadow)
{
StaticMeshInstance.Desc.Flags &= ~FISMPoolComponentDescription::AffectShadow;
}
Is this just a bug that was missed or was there an intentional reason for not being able to disable shadows with these renderers?
If it’s a bug, are these fixes sufficient? Or is there something I’m missing. Any info is appreciated!
Kind regards,
Darien
[Attachment Removed]