# TryLoadAsset<T>(AssetKey, out T)

> Tries to resolve the asset for a key without loading asynchronously.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization.Providers](/engine/6000.7/script-reference/unity/localization/providers.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

## TryLoadAsset\<T>(AssetKey, T)

```csharp
bool TryLoadAsset<T>(AssetKey key, out T asset) where T : Object
```

### Parameters

**** (\[AssetKey]\(/engine/6000.7/script-reference/unity/localization/providers/assetkey)): The asset to resolve.**** (T): The resolved asset, or `null` on a miss.

### Returns

| Type                                                          | Description                                                      |
| ------------------------------------------------------------- | ---------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` when the asset resolved synchronously; otherwise `false`. |

### Remarks

Return `true` and set `asset` when the asset resolves immediately. Return `false` on a miss so the provider chain continues to the next provider, and leave `asset` as `null`. The asset type is `T`, or [AssetKey.Type](/engine/6000.7/script-reference/unity/localization/providers/assetkey/type.md) when `T` is the base [Object](/engine/6000.7/script-reference/unityengine/object.md), mirroring [IAsyncAssetProvider.LoadAssetAsync](/engine/6000.7/script-reference/unity/localization/providers/iasyncassetprovider/loadassetasync.md).
