Version: 2023.1

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.

See Also: AssetBundle.isStreamedSceneAssetBundle, SceneManager.LoadScene, AssetBundleBuild.addressableNames