# GetAllAssetNames()

> Return all Asset names in the AssetBundle.

## Definition

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

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

### Returns

| Type                                                               | Description                                                 |
| ------------------------------------------------------------------ | ----------------------------------------------------------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) | An array of the names of all the assets in the AssetBundle. |

### Remarks

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

If the AssetBundle contains Scenes this returns an empty string array.

Additional Resources: [\_addressableNames](/engine/6000.7/script-reference/unityeditor/assetbundlebuild/addressablenames.md)
