# LoadAssetWithSubAssetsAsync

> Loads Asset and sub Assets from the AssetBundle asynchronously.

## Definition

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

## LoadAssetWithSubAssetsAsync(string)

Loads Asset and sub Assets from the AssetBundle asynchronously.

```csharp
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name)
```

### Parameters

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

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [AssetBundleRequest](/engine/6000.3/script-reference/unityengine/assetbundlerequest.md) |             |

### Remarks

Additional Resources: [AssetBundleRequest.allAssets](/engine/6000.3/script-reference/unityengine/assetbundlerequest/allassets.md).

## LoadAssetWithSubAssetsAsync\<T>(string)

Loads Asset and sub Assets from the AssetBundle asynchronously.

```csharp
public AssetBundleRequest LoadAssetWithSubAssetsAsync<T>(string name)
```

### Parameters

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

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [AssetBundleRequest](/engine/6000.3/script-reference/unityengine/assetbundlerequest.md) |             |

### Remarks

Additional Resources: [AssetBundleRequest.allAssets](/engine/6000.3/script-reference/unityengine/assetbundlerequest/allassets.md).

## LoadAssetWithSubAssetsAsync(string, Type)

Loads Asset and sub Assets from the AssetBundle asynchronously.

```csharp
public AssetBundleRequest LoadAssetWithSubAssetsAsync(string name, Type type)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the Asset.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type to load.

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [AssetBundleRequest](/engine/6000.3/script-reference/unityengine/assetbundlerequest.md) |             |

### Remarks

Additional Resources: [AssetBundleRequest.allAssets](/engine/6000.3/script-reference/unityengine/assetbundlerequest/allassets.md).
