procedural path painting on terrain

i have a list of coordinates that i am building a path with, i have tried spawning a prefab with the texture applied but due to the amount of prefabs spawning it is very laggy. What i am looking at is painting on the terrain with a splat-map and code driven, is this the correct approach ?

Salmjak ยท 3 days ago 0
@DuncanLDavis You should take a look at terrain data, specifically SetAlphaMaps().

This is the answer i was needing.