- Home /
 
 
               Question by 
               rootools · Mar 31, 2016 at 10:03 AM · 
                sceneassetbundlescene loadbundlebundles  
              
 
              EditorSceneManager.OpenScene & AssetBundle
I have packed location in assets bundles. 1 location - 1 bundle. I have a viewer/unpacker for this location:
 EditorSceneManager.NewScene(NewSceneSetup.EmptyScene);
 
 AssetBundle LocationBundle = AssetBundle.LoadFromFile(path);
 string scenePath = LocationBundle.GetAllScenePaths()[0];
 
 EditorSceneManager.OpenScene(scenePath);
 
               I have error:
 ArgumentException: Cannot open scene with path "Assets/Scenes_autogenerated/iOS/andrew_1st_floor.unity".
 UnityEditor.SceneManagement.EditorSceneManager.OpenScene (System.String scenePath) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorSceneManagerBindings.gen.cs:38)
 LocationViewer.ViewLocation () (at Assets/Scripts/Editor/LocationViewer.cs:31)
 
 
               What a problem? How unpack scene? How get correct path to unpacking scene?
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Can I know if the current scene has been loaded from bundle? 0 Answers
How to load an AssetBundleManifest in the Editor? 0 Answers
The AssetBundle can't be loaded because another AssetBundle with the same files is already loaded. 1 Answer
What things cause this message?The content was stopped because a... 3 Answers