Class ContentCatalogProvider
Abstract base provider for content catalogs. This provider makes use of a hash file to determine if a newer version of the catalog needs to be downloaded. Subclasses supply format-specific hooks for JSON and Binary catalogs.
Inherited Members
Namespace: UnityEngine.AddressableAssets.ResourceProviders
Assembly: Unity.Addressables.dll
Syntax
public abstract class ContentCatalogProvider : ResourceProviderBase, IResourceProvider, IInitializableObject
Constructors
| Name | Description |
|---|---|
| ContentCatalogProvider(ResourceManager) | Constructor for this provider. |
Fields
| Name | Description |
|---|---|
| DisableCatalogUpdateOnStart | Use to indicate if the updating the catalog on startup should be disabled. |
| IsLocalCatalogInBundle | Use to indicate if the local catalog is in a bundle. |
Properties
| Name | Description |
|---|---|
| CatalogExtension | The file extension for catalogs loaded by this provider (e.g. ".json" or ".bin"). |
Methods
| Name | Description |
|---|---|
| CreateInnerCatalogLocation(string, ProviderLoadRequestOptions) | Builds the inner IResourceLocation used to load the catalog bytes. Implementations also register any required inner provider with the ResourceManager. |
| ParseBundledCatalog(TextAsset) | Parses a TextAsset loaded from a local catalog bundle into a ContentCatalogData instance. |
| Provide(ProvideHandle) | |
| Release(IResourceLocation, object) |