# LoadAllAssets

> Loads all Assets contained in the AssetBundle synchronously.

## Definition

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

## LoadAllAssets()

Loads all Assets contained in the AssetBundle synchronously.

```csharp
public Object[] LoadAllAssets()
```

### Returns

| Type                                                                | Description                                    |
| ------------------------------------------------------------------- | ---------------------------------------------- |
| [Object\[\]](/engine/6000.7/script-reference/unityengine/object.md) | An array of all the assets in the AssetBundle. |

## LoadAllAssets\<T>()

Loads all Assets contained in the AssetBundle synchronously.

```csharp
public T[] LoadAllAssets<T>() where T : Object
```

### Returns

| Type              | Description                                                |
| ----------------- | ---------------------------------------------------------- |
| [\<T>\[\]](./.md) | An array of all the assets of type `T` in the AssetBundle. |

## LoadAllAssets(Type)

Loads all Assets contained in the AssetBundle synchronously.

```csharp
public Object[] LoadAllAssets(Type type)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): When specified only main or visible objects that derive from the provided type are returned.

### Returns

| Type                                                                | Description                                                                        |
| ------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [Object\[\]](/engine/6000.7/script-reference/unityengine/object.md) | An array of all the assets in the AssetBundle that derive from the specified type. |
