Is it possible to expose a blueprint variable that toggles the blueprints shadow casting?

Is it possible to expose a blueprint variable that toggles the blueprints shadow casting? I want to be able to optionally disable shadow casting for the meshes called by my blueprint.

I’ve tried to use “Set Cast Shadow” but haven’t been able to get it to actually work.

Just setting CastShadow to false works properly for me in 4.7.5. My blueprint is a child of Actor with a single StaticMesh component inside of it. This works when setting the actors CastShadow or the specific static mesh component’s CastShadow.

Maybe explain your situation a bit more. I am assuming you mean you want the shadow cast on the environment to go away but leave your self shadowed. Also I am assuming you are dealing with dynamic shadows as you cannot affect static baked-in shadows at runtime.

40968-capture.jpg