Procedural Foliage with Landscape Layers

Thank you for the answer.
Also I wouldn’t need to change the paint layer at runtime. The whole generation process takes place in editor.