Terrain editing in runtime

I’ve tried to implement runtime modifications of terrain materials and I ended up banging my head against a wall for 3 days before giving up. Definitely not a quick modification…