# GetAllScenePaths()

> Return all the names of Scenes in the AssetBundle.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AssetBundleModule

```csharp
public string[] GetAllScenePaths()
```

### Returns

| Type                                                               | Description |
| ------------------------------------------------------------------ | ----------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

The names are the project-relative path of each .unity file, unless a different name was specified at build time.

An AssetBundle can store either Scenes or Assets, never a mix of the two.  If the AssetBundle contains only Assets this returns an empty string array.

Additional Resources: [AssetBundle.isStreamedSceneAssetBundle](/engine/6000.3/script-reference/unityengine/assetbundle/isstreamedsceneassetbundle.md), [SceneManager.LoadScene](/engine/6000.3/script-reference/unityengine/scenemanagement/scenemanager/loadscene.md), [AssetBundleBuild.addressableNames](/engine/6000.3/script-reference/unityeditor/assetbundlebuild/addressablenames.md)
