- Home /
Dynamically create a new scene from code
Hi I am trying to create a AR app that will run itself in order for this to happen I am going have a online Database where users can upload information to the database and as soon as the database changes with the new information I am going to need unity to create a new scene with the generic barebones of every scene and then plug in the information that the user uploaded into specific locations. The main problem is that I don't know how to write a script that will run the program (create a new scene implement barebones of scene ) whenever the database is changed. Any help would be very very appreciated, at my college nobody knows anything about unity so you all are my only hope!
Answer by yeye185227858 · Mar 17, 2016 at 03:21 PM
Try "BuildPipeline.BuildStreamedSceneAssetBundle" to packge your scene as xxx.unity3d file. Then use AssetBundle to load your scene(WWW or AssetBundle.CreateFromMemory), then you can "UnityEngine.Application.LoadLevel("sceneString")". Hope this help!