# LoadAllAssets

> Loads all Assets contained in the AssetBundle synchronously.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/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.6/script-reference/unityengine/object.md) |             |

## LoadAllAssets\<T>()

Loads all Assets contained in the AssetBundle synchronously.

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

### Returns

| Type              | Description |
| ----------------- | ----------- |
| [\<T>\[\]](./.md) |             |

## 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.6/script-reference/unityengine/object.md) |             |
