# ISynchronousAssetEntry

> An optional capability for an asset entry that can resolve its asset immediately, without an asynchronous load.

## Definition

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

```csharp
public interface ISynchronousAssetEntry
```

## Remarks

Implement this alongside [IAssetEntry](/engine/6000.7/script-reference/unity/localization/iassetentry.md) when the entry already has its asset in hand, such as a direct object reference or a synchronous `Resources` load, so [LocalizedAsset\<TObject>](/engine/6000.7/script-reference/unity/localization/localizedasset1.md) can resolve it on the synchronous path (the `GetLocalizedAsset` accessor, or under the [LoadingPreference.Synchronous](/engine/6000.7/script-reference/unity/localization/loadingpreference/synchronous.md) loading preference). An entry kind that can only load asynchronously (for example an Addressables-backed kind provided by a package) does not implement this interface, and the synchronous path falls back to whatever is already cached.

Additional Resources: [IAssetEntry](/engine/6000.7/script-reference/unity/localization/iassetentry.md), [LocalizedAsset\<TObject>](/engine/6000.7/script-reference/unity/localization/localizedasset1.md)

The built-in asset entries implement this, so a localized asset backed by them resolves synchronously.

## Examples

```csharp
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class SynchronousAssetEntryExample
    {
        public Texture Load()
        {
            var localizedTexture = new LocalizedTexture();
            localizedTexture.SetReference("My Assets", "ICON");
            return localizedTexture.GetLocalizedAsset();
        }
    }
}
```

## Methods

| Method                                                                                                    | Description                                                        |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [TryLoadAsset](/engine/6000.7/script-reference/unity/localization/isynchronousassetentry/tryloadasset.md) | Tries to resolve the entry's asset without loading asynchronously. |
