> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iassetprovider/yarn.unity.iassetprovider.getassetsoftype.md).

# GetAssetsOfType\<T>()

Method in [IAssetProvider](/api/csharp/yarn.unity/yarn.unity.iassetprovider.md)

## Summary

Gets a collection of assets of type `T` from the target.

```csharp
public IEnumerable<T> GetAssetsOfType<T>()
    where T : UnityEngine.Object;
```

## Type Parameters

| Name | Description            |
| ---- | ---------------------- |
| T    | The type of the asset. |

## Returns

A collection of assets. This collection may be empty.
