Version: 2023.2

AssetBundle.GetAllScenePaths

切换到手册
public string[] GetAllScenePaths ();

描述

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