# GenerateAssetBundleBuilds()

> Returns an array of AssetBundleBuild structs that detail the current AssetBundle layout, as set through the Inspector and stored in the AssetDatabase.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Build.Content](/engine/6000.5/script-reference/unityeditor/build/content.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static AssetBundleBuild[] GenerateAssetBundleBuilds()
```

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [AssetBundleBuild\[\]](/engine/6000.5/script-reference/unityeditor/assetbundlebuild.md) |             |

### Remarks

This API does not generate a build, instead it is a convenient function to populate the build definition into the format expected by some signatures of [BuildPipeline.BuildAssetBundles](/engine/6000.5/script-reference/unityeditor/buildpipeline/buildassetbundles.md), or the Scriptable Build Pipeline.

Additional Resources: [BuildPipeline.BuildAssetBundles](/engine/6000.5/script-reference/unityeditor/buildpipeline/buildassetbundles.md), [AssetDatabase.GetAllAssetBundleNames](/engine/6000.5/script-reference/unityeditor/assetdatabase/getallassetbundlenames.md), [AssetDatabase.GetAssetPathsFromAssetBundle](/engine/6000.5/script-reference/unityeditor/assetdatabase/getassetpathsfromassetbundle.md)
