AssetBundle.GetAllScenePaths

Declaration

public string[] GetAllScenePaths();

Description

Return all the names of Scenes in the AssetBundle.

Only works for streamed Scene AssetBundles, otherwise an empty string array is returned. The names are the project-relative path of each .unity file, unless a different name was specified at build time.

Additional resources: AssetBundle.isStreamedSceneAssetBundle, SceneManager.LoadScene, AssetBundleBuild.addressableNames


Did you find this page useful? Please give it a rating: