Transparent foliage when in front of camera

Hi,

I have a top-down scene which you can rotate and surrounding the map are trees painted with foliage tool. In some cases it is possible that due to rotation the trees will show up in front of the camera completely obscuring the scene and the player in the background. Is it possible to setup foliage tool / material so that if the trees are in front of the player they go transparent. I’ve done something similar to certain regular meshes by changing their material to include transparency and then checking the line of sight and dynamically setting alpha value, but not sure how to do this for foliage.