Terrain Grass black in build only.

I am adding grass to a terrain that is created at run time. This all works fine in the editor however When I try to use a texture in a format that supports transparency the grass doesn’t show up in the build at all. If I use a texture that does not support transparency then the grass shows up as black blocks in build. This seems similar to what happens with a shader needed is not included in the build. However I don’t know what shader I need to include.

Any help would be greatly appreciated.
Thank you.

OK, I figured it out. Unity doesn’t automatically include the grass shader unless there is a terrain with grass on it in the the starting scene. I’m sure this isn’t the cleanest way to solve this but it works.

So just put a terrain with grass on it in your first scene and this should fix this issue.