How to create a splat map associated with a code generated terrain?

Hi all,

Well, I’ve been searching high and low and trying out a lot of things, and I can’t seem to figure this one out. To clarify, I am not asking how to generate the content of a splat map. That I know. The problem I am having is that I am generating a lot of terrain tiles via code, however, a non-painted terrain, a blank terrain doesn’t have a splat map of any kind (as shown in the images).
9151715--1272314--Unity Question - Splatmaps.png
So the problem I am running into is there is no splat map for my script to modify, and I can’t find any hint of an answer as to what I am doing wrong, and how can I force the creation of a “blank” splat map associated with my script generated terrain, so that I can later modify it and re-save it.

Any help would be greatly appreciated :slight_smile:

I’ve never added a splatmap to a terrain, just manipulated an existing splatmap.

If I had to guess it is likely done with some combination of this method:

as well as obviously connecting the embedded asset to where it belongs in the TerrainData (or wherever it lives these days).

@Kurt-Dekker Thank you for the reply. Well, that is something I can try unless a more straightforward solution pops up, as I would prefer something a bit cleaner, if possible :slight_smile: