Unity3D Asset bundles can not include Scenes
Asset bundles can not include Scenes: Assets/Scene/game.unity
If you want to stream a Scene, use BuildPipeline.BuildPlayer with BuildOptions.BuildAdditionalStreamedScenes.
UnityEditor.BuildPipeline:BuildAssetBundle(Object, Object[], String, BuildAssetBundleOptions, BuildTarget)
ExportAssetBundles:ExportResource() (at Assets/Editor/ExportAssetBundles.cs:14)
씬을 에셋 번들로 만들려고 하니 위와같은 에러가 발생하네요. 씬은 기존에 리소스들을 에셋번들로 만들 때 사용하던 BuildPipeline.BuildAssetBundle로는 안되고 BuildPipeline.BuildStreamedSceneAssetBundle을 사용해야 하네요.
또는 BuildPipeline.BuildPlayer를 사용한다면 BuildOptions.BuildAdditionalStreamedScenes 옵션을 주고 만들면 됩니다.
If you want to stream a Scene, use BuildPipeline.BuildPlayer with BuildOptions.BuildAdditionalStreamedScenes.
UnityEditor.BuildPipeline:BuildAssetBundle(Object, Object[], String, BuildAssetBundleOptions, BuildTarget)
ExportAssetBundles:ExportResource() (at Assets/Editor/ExportAssetBundles.cs:14)
씬을 에셋 번들로 만들려고 하니 위와같은 에러가 발생하네요. 씬은 기존에 리소스들을 에셋번들로 만들 때 사용하던 BuildPipeline.BuildAssetBundle로는 안되고 BuildPipeline.BuildStreamedSceneAssetBundle을 사용해야 하네요.
[MenuItem("Assets/Build Streamed Scenes")] static void BuildScenes() { string[] levels = {"Assets/Scene/game.unity", "Assets/Scene/setting.unity",}; BuildPipeline.BuildStreamedSceneAssetBundle(levels, path, BuildTarget.Android); }
또는 BuildPipeline.BuildPlayer를 사용한다면 BuildOptions.BuildAdditionalStreamedScenes 옵션을 주고 만들면 됩니다.
댓글
댓글 쓰기