Invisible material that blocks light completely - you mean it will cast shadows while it’s hidden in game? Not exactly what you asked for, but I don’t know about material. Whole actor can be setup like that. If so then - go to the
- DetailsPanel → Lighting → CastShadow (true)
- DetailsPanel → Lighting → HiddenShadow (true)
- DetailsPanel → Rendering → ActorHiddenInGame (true)
You can modify this parameters runtime via blueprints.