由于buildsetting里面添加的场景会默认打进包里面,而我准备将场景打包成assetbundle,所以我将除了初始场景外的所有场景从里面删除。
然后打完包之后,加载方式是先加载assetbundle,然后SceneManager.LoadScene加载场景,这时候会报错,信息如下:
Scene 'start' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
我要怎么弄才能在不把场景提前添加到build setting里面,之后还能用SceneManager.LoadScene加载场景?
然后打完包之后,加载方式是先加载assetbundle,然后SceneManager.LoadScene加载场景,这时候会报错,信息如下:
Scene 'start' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded.
我要怎么弄才能在不把场景提前添加到build setting里面,之后还能用SceneManager.LoadScene加载场景?