- Home /
BuildOptions.BuildAdditionalStreamedScenes work with players other than webplayer?
The Followig code is in the Scripting Manual:
// Build a streamed unity3d file. This contain one scene that can be downloaded
// on demand and loaded once it's asset bundle has been loaded.
BuildPipeline.BuildPlayer(
["Assets/DynamicallyLoadedScene.unity"], "DynamicallyLoadedScene.unity3d",
BuildTarget.WebPlayer, BuildOptions.BuildAdditionalStreamedScenes);
Does the build target matter for this call, or will the resultant file work with all the unity player types?
Answer by Ashkan_gc · Apr 15, 2010 at 08:02 PM
you can use streamable scenes inside the web player or standalone game. there is no limitation.documentation talks explicitly about limitations like this. the example has the target of web player because most use cases of the feature are in web based games. keep in mind that the unity editor will not include your scripts and you can not update them using asset bundles or streamable scenes. angry ant has a blog post about this.
I've tested the file with web player, standalone, and editor, and they can all load the scenes, even though the build target is the web player.
Thought I'd mention that for everyone.
you can answer your questions when you find the answer to help others having the same question :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612165043im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Automate exclusion of specific Android plugin from build? 0 Answers
Can unity save Scripts In AssetBundle for Scene? 0 Answers
Asset bundle mismatch in different Unity version 1 Answer
Using CachedXMLHttpRequest 1 Answer