I have same needs.
Casting a trace as said you can hide meshes. and as described here you can cast shadows. so, solution is:
- Make a trace from Camera to Pawn
- Store meshes in an array
- Toggle visibility
- This meshes must be setted as “cast hidden shadows” in details pane or by blueprint