Edit detail layer of terrain at runtime

So I’m making a game where as the player walks across the terrain, the grass (the default 2d grass from the terrain builder) below him disappears. I have no idea how to go about this and any help would be appreciated!

This is that you need. The example is nearly perfectly for you, you have just to adjust the position