- Home /
Is WWW class usable in Android platform?
This seems like a trivial question but if yes, then why is it that when I use Unity Editor to play a scene containing scripts that uses WWW class and the editor automatically switch the player to Webplayer platform without any notification? Or is this a bug in Unity Editor?
Now I have to switch back to Android platform and waste another 3 hours re-importing all assets included in the project. I really wish there is a good explanation for all the time wasted.
Answer by qyxls · Mar 08, 2012 at 08:34 AM
Your should do like this in your editor's class :
BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, BuildTarget.Android);//Look here
I thought switching the platform in the Build Settings to Android is sufficient to build asset bundles for Android?