Class ContentCatalogData
Container for ContentCatalogEntries.
Inherited Members
Namespace: UnityEngine.AddressableAssets.ResourceLocators
Assembly: Unity.Addressables.dll
Syntax
[Serializable]
public class ContentCatalogData
Constructors
Name | Description |
---|---|
ContentCatalogData() | Create a new ContentCatalogData object without any data. |
ContentCatalogData(IList<ContentCatalogDataEntry>, string) | Creates a new ContentCatalogData object with the specified locator id. |
ContentCatalogData(string) | Creates a new ContentCatalogData object with the specified locator id. |
Fields
Name | Description |
---|---|
LocalHash | Stores the local catalog hash |
Properties
Name | Description |
---|---|
BuildResultHash | Stores the hash for the build result |
InstanceProviderData | Data for the Addressables.ResourceManager.InstanceProvider initialization; |
ProviderId | Stores the id of the data provider. |
ResourceProviderData | The list of resource provider data. Each entry will add an IResourceProvider to the Addressables.ResourceManager.ResourceProviders list. |
SceneProviderData | Data for the Addressables.ResourceManager.InstanceProvider initialization; |
Methods
Name | Description |
---|---|
CreateOptimizedCopy(ContentCatalogData) | Creates an optimized copy of the catalog data. This shortens all dependency keys in order to reduce the amount of key strings that get serialized. Assetbundles generally have a long path that is used as the id and this will replace them with an integer value. |
ExtractBinaryCatalog(string, string) | Converts a binary catalog to a readable text version. The text version cannot be loaded via the runtime and is intended for debugging purposes only. |
SerializeToByteArray() | Construct catalog data with entries. |
SetData(IList<ContentCatalogDataEntry>) |