# GetAllDependencies(string)

> Get all the dependent AssetBundles for the given AssetBundle.

## Definition

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

```csharp
public string[] GetAllDependencies(string assetBundleName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the asset bundle.

### Returns

| Type                                                               | Description                                                                                                               |
| ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| [string\[\]](https://learn.microsoft.com/dotnet/api/system.string) | An array of the names of all the AssetBundles that the specified AssetBundle depends on, including indirect dependencies. |
