Quantcast
Channel: Questions in topic: "assetbundle"
Viewing all articles
Browse latest Browse all 1593

building assetbundle with scene and entire assets of that scene

$
0
0
Hi All, I want to develop one application that will contain 5 icon buttons of 5 mini games. 5 mini games should have different assetbundles stored onto the server with entire project scenes and resources. If I clicked on any icon from my application it should load all data from assetbundles to android or ios device and user should start playing the game. Is it Possible ?? I have tried in web player exporting in following manner var levels : String[] = ["Assets/MainMenu.unity", "Assets/BlasterIngameArcade.unity", "Assets/BlasterIngamePuzzle.unity"]; var path = EditorUtility.SaveFilePanel ("Save Resource", "", "MyProject", "unity3d"); if (path.Length != 0) { BuildPipeline.BuildStreamedSceneAssetBundle( levels,path, BuildTarget.WebPlayer); } and loading in following manner var download = WWW.LoadFromCacheOrDownload ("https://dl.dropboxusercontent.com/u/225593044/MyProject.unity3d", 1); yield return download; AssetBundle bundle1 = download.assetBundle; bundle1.LoadAll(); Application.LoadLevel ("BlasterIngameArcade"); But The reference scripts attached with the gameobjects in scene are missing. It only shows assets in scene i.e material and textures Thanks Nilesh

Viewing all articles
Browse latest Browse all 1593

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>