- Home /
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.
Answer by ZenithCode · Oct 23, 2012 at 02:38 PM
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);
Answer by cdorey · Jun 17, 2013 at 02:19 PM
I added a cube in the main scene, loading the asset bundles, and applied the missing materials to the cube and it worked.
Your answer
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
Scene bundles loadable in Standalone? 2 Answers
load .unity3d with resource, scene and executable script 0 Answers
Why does unity delete additional files after running a standalone build 0 Answers
Cannot build asset bundle of a terrain with trees placed 1 Answer