bCastHiddenShadow flag in UPrimitiveComponent doesn't affect ray tracing shadows

Steps to Reproduce

1. Create a new project and enable Ray Tracing
2. Create a empty level and add two meshes (A floor and a smaller cube on top of it)
3. Place a light near the meshes and make sure Cast Ray Tracing Shadows is enabled.
4. Select the eye next to the sphere in the world outlier to hide the object

Result - The hidden object is still casting a shadow
Expected - Hiding the object also removes the shadow

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-101073 in the post.

Login to Vote

ComponentRendering - Ray Tracing
Affects Versions4.26
Target Fix4.27
CreatedOct 13, 2020
UpdatedOct 15, 2020