Hi! I personally do this on my project using a runtime virtual texture as a mask for hiding the foliage.
Are you familiar with RVT’s at all?
Either way I will post the setup process next time I am at my workstation. In the meantime I have linked the documentation.