Class BinaryContentCatalogData
Binary-format catalog data. Serialize via BinaryStorageBuffer; deserialize with BinaryContentCatalogData.Serializer.
Inherited Members
Namespace: UnityEngine.AddressableAssets.ResourceLocators
Assembly: Unity.Addressables.dll
Syntax
[Serializable]
public class BinaryContentCatalogData : ContentCatalogData
Constructors
| Name | Description |
|---|---|
| BinaryContentCatalogData() | Creates a new BinaryContentCatalogData object without any data. |
| BinaryContentCatalogData(string) | Creates a new BinaryContentCatalogData object with the specified locator id. |
Fields
| Name | Description |
|---|---|
| kBinaryAssetProviderId | ProviderId for the BinaryAssetProvider registered with this catalog's Serializer. Used by BinaryCatalogProvider when building the inner resource location so both sides use the same string without referencing the internal generic type directly. |
Methods
| Name | Description |
|---|---|
| CreateOptimizedCopy(BinaryContentCatalogData) | 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() | |
| SetData(IList<ContentCatalogDataEntry>) |