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.
Answer by ricolini · Feb 17 at 08:53 PM
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 :(
Answer by gnovos · Feb 17 at 11:20 PM
I ended up writing my own grass shader, so unfortunately I never found out what was happening here.
Your answer
Follow this Question
Related Questions
Unity Terrain as a instantiated tile 0 Answers
How do I set a Render Texture as the HeightMap for a Terrain? 0 Answers
Help with terrain texture and grass blending 1 Answer
texturing multiple terrains 0 Answers