'Unity Mapbox SDK - Cut off water areas from terrain mesh

I'm currently experimenting with the Mapbox Unity plugin and I need to remove the water tiles from the generated terrain to use a custom water solution.

I've read in the API documentation that there is the class "AbstractTileFactory" that allows developers to "create a custom factory to fetch raw data and process it in a custom way, like creating terrain and then cut off water areas from terrain mesh."

I don't get it how to use it and I found no usage example, could someone out me in the right direction?

I tried to expand around the "AbstractTileFactory" class but don't know exactly where to start.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source