Hey, thanks for the question!
As of writing this, MAPGrid does support real-time editing of tiles. The only concern is that depending on your target platform, like mobile, the performance may or may not be acceptable. I simply haven't tested on mobile yet, so I can't say, but I plan to optimize it for mobile in the future.
I created a demo for a game in which you CAN remove tiles with minimal performance overhead. You can try it out for free here!
There are certain ways you can limit the performance impact of editing tiles:
- Use separate Tilemaps. Editing tiles is a lot faster if you separate the editable tiles from the static tiles. Using a separate Tilemap for your editable tiles means less has to change when you add/remove a Tile.
- Use simple meshes. Use as few vertices as you can. Fewer vertices = Faster chunk rebuilding.
- Disable the fancy stuff. MAPGrid has certain features that improve the look of tiles, but also slow down real-time editing. "Smooth Mesh Seams" is one of these. Again, if you can get away with using it, then by all means go ahead, but it can impact performance.
- If removing many tiles at once, don't rebuild after every tile. Manually rebuild after removing all the tiles. The functions for Adding/Removing tiles have an optional parameter "rebuildChunk" which determines whether or not the chunk will be rebuilt. If not, after you've removed your tiles, call "RebuildPendingChunks" on the same tilemap to rebuild the chunk.
- Smaller Chunk Size. This one is a trade-off between overall performance, and the performance spike of editing a tile. Typically, you can get away with reducing the Height of the chunk, because many games don't utilize it anyway. When you edit a tile, the whole chunk is rebuilt, so a smaller chunk means less has to be rebuilt. But, this also means more, separate chunks in your scene, potentially slowing down the rest of your game. Always test solutions for your specific use-case.
The documentation on the API for MAPGrid is in development, but I can assist you on discord @mightyandpowerfulgames