BuildPipeline.BuildStreamedSceneAssetBundlestatic function BuildStreamedSceneAssetBundle (levels : string[], locationPath : String, target : BuildTarget) : StringParameters
ReturnsString - String with an error message, empty on success. DescriptionBuilds one or more scenes and all their dependencies into a compressed asset bundle. The scene AssetBundle can be built for any target platform and always creates a single compressed unity3d file. The scene can be downloaded and loaded using the WWW class. You can use WWW.LoadFromCacheOrDownload to cache the downloaded scene after it has been downloaded. // Build a streamed unity3d file. This contain one scene that can be downloaded When downloading the built compressed file, you need to call WWW.assetBundle in order to make the scene available to the Application.LoadLevel() and Application.LoadLevelAdditive() functions. function Start () { |
