Pink trees. Can't use BuildAssetBundle

Hi all

So I’m building my entire scene as an assetbundle and it seems I’m having trouble with the trees which go pink when in billboard mode. I have read around a lot and most of the solutions seem to indicate the usage of BuildAssetBundle so I tired using that but that method does not accept a scene. It only works with prefabs. So what should I do now to get rid of this problem in my standalone exe player(this player streams the scene in)?

Help appreciated.

Hi,

No you dont build scenes as asset bundles. You build the whole player as follows.

Yourscenes is an array of scenes in your build.

BuildPipeline.BuildPlayer(*YourScenes*, "MyScenes.unity3d",
            BuildTarget.WebPlayer, BuildOptions.WebPlayerStreamed);

See answer by unitylove2

I added a cube in the main scene, loading the asset bundles, and applied the missing materials to the cube and it worked.