GetAllScenePaths()
Return all the names of Scenes in the AssetBundle.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AssetBundleModule
public string[] GetAllScenePaths()
Returns
Type | Description |
|---|---|
| string[] |
Remarks
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