Catalog.json: Difference between revisions
Line 91: | Line 91: | ||
<!-- fun fact, this format also consists entirely out of uint32 values. fun! --> | <!-- fun fact, this format also consists entirely out of uint32 values. fun! --> | ||
{{DataStructure| | {{DataStructure| | ||
{{DataStructureField| | {{DataStructureField|addressable_entry_count|uint32|4-byte integer, indicating the amount of entries stored in the whole structure.}} | ||
{{DataStructureField| | {{DataStructureField|addressable_entries|array|A list of addressable entries. The length of the list can be determined by either using the <code>addressable_entry_count</code> field, or reading until the end of the binary data.| | ||
{{DataStructureField||struct|An entry. The size of one entry is always 28 bytes (7 * 4 bytes).| | {{DataStructureField||struct|An addressable entry. The size of one entry is always 28 bytes (7 * 4 bytes).| | ||
{{DataStructureField|internal_id_index|uint32|4-byte integer, index into the <code>m_InternalIds</code> array inside the parent [[catalog.json]] file.}} | {{DataStructureField|internal_id_index|uint32|4-byte integer, index into the <code>m_InternalIds</code> array inside the parent [[catalog.json]] file.}} | ||
{{DataStructureField|resource_provider_index|uint32|4-byte integer, index into the <code>m_ProviderIds</code> array inside the parent [[catalog.json]] file.}} | {{DataStructureField|resource_provider_index|uint32|4-byte integer, index into the <code>m_ProviderIds</code> array inside the parent [[catalog.json]] file.}} | ||
{{DataStructureField|dependencies_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>. The referenced bucket contains this entry's dependencies - indices of other entries, that need to be downloaded for this one to work properly.}} | {{DataStructureField|dependencies_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>. The referenced bucket contains this entry's dependencies - indices of other addressable entries, that need to be downloaded for this one to work properly.}} | ||
{{DataStructureField|bundled_asset_provider_crc|uint32|4-byte integer. This field is used only if the resource provider for this asset is <code>UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider</code>. If that is the case, this field's value is seemingly random, ranging from 0 to 4294967295, most likely being some kind of CRC check. If the resource provider is different, this field's value is 0. {{verify}}}} | {{DataStructureField|bundled_asset_provider_crc|uint32|4-byte integer. This field is used only if the resource provider for this asset is <code>UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider</code>. If that is the case, this field's value is seemingly random, ranging from 0 to 4294967295, most likely being some kind of CRC check. If the resource provider is different, this field's value is 0. {{verify}}}} | ||
{{DataStructureField|extra_data_block_offset|uint32|4-byte integer, offset into the <code>ExtraData</code> binary blob. Points to the beginning of an extra data entry associated with this entry.}} | {{DataStructureField|extra_data_block_offset|uint32|4-byte integer, offset into the <code>ExtraData</code> binary blob. Points to the beginning of an extra data entry associated with this entry.}} | ||
{{DataStructureField|siblings_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>. The referenced bucket contains the family of this entry - the key is like a name for the content of this entry, and other entries that are in the bucket are the "siblings". Siblings ultimately point to the same asset, but have different resource types. For example, an image asset might have two family members: a <code>UnityEngine.Texture2D</code> entry, and a <code>UnityEngine.Sprite</code> entry.}} | {{DataStructureField|siblings_bucket_index|uint32|4-byte integer, index into the array that is contained within the binary blob encoded in <code>m_BucketDataString</code>. The referenced bucket contains the family of this addressable entry - the key is like a name for the content of this entry, and other addressable entries that are in the bucket are the "siblings". Siblings ultimately point to the same asset, but have different resource types. For example, an image asset might have two family members: a <code>UnityEngine.Texture2D</code> entry, and a <code>UnityEngine.Sprite</code> entry.}} | ||
{{DataStructureField|resource_type_index|uint32|4-byte integer, index into the <code>m_resourceTypes</code> array inside the parent [[catalog.json]] file.}} | {{DataStructureField|resource_type_index|uint32|4-byte integer, index into the <code>m_resourceTypes</code> array inside the parent [[catalog.json]] file.}} | ||
}} | }} |