DetailPrototype becomes white quads instead of texture on build, but works in editor

Here is what I see in the build:

These are all DetailPrototypes that I am building in a script. Any terrain I build in advance (non scripting) is able to display grass just fine. What am I doing wrong?

EDIT: I did find a temporary workaround which is to build a terraindata in the editor, assign it to my terrain generator and then instead of terrainData = new TerrainData(); I use terrainData = Instantiate(ProtoTypeTerrainData);

There is something magic about terraindata objects created in the editor vs those created in a script. I’m not sure what, but I’m clearly not creating it correctly.

Hey, i was wondering if you found a solution for your problem. I am currently working on procedural terrain generation and when i export the project to android i get white quads as grass - in the editor everything works fine :frowning:

I ended up writing my own grass shader, so unfortunately I never found out what was happening here.