Class UnityAddressablesKeyCatalog
Unity Addressables-based implementation of asset key catalog.
Resolves asset keys from Addressables labels for batch prefetching operations.
Implements
Inherited Members
Namespace: Serenity.AssetPrefetcher.Infrastructure.Services
Assembly: Serenity.UnityAssetPrefetcher.Infrastructure.dll
Syntax
public class UnityAddressablesKeyCatalog : IAssetKeyCatalog
Constructors
UnityAddressablesKeyCatalog()
Declaration
public UnityAddressablesKeyCatalog()
Methods
GetKeysByLabelsAsync(IEnumerable<string>, CancellationToken)
Asynchronously retrieves all asset keys associated with the specified labels.
Declaration
public Task<HashSet<string>> GetKeysByLabelsAsync(IEnumerable<string> labels, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | labels | Collection of Addressables labels to resolve |
| CancellationToken | cancellationToken | Cancellation token for operation cancellation |
Returns
| Type | Description |
|---|---|
| Task<HashSet<string>> | Set of unique asset keys found for the specified labels |