# GetAssetsOfType\<T>()

Method in [IAssetProvider](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iassetprovider)

## 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.
