Catalog.json: Difference between revisions

mNo edit summary
Line 3: Line 3:
'''catalog.json''' is a [[Wikipedia:JSON|JSON]] file used by the [[com.unity.addressables]] package in the [[Unity]] game engine. It is a list of all assets used in a game.
'''catalog.json''' is a [[Wikipedia:JSON|JSON]] file used by the [[com.unity.addressables]] package in the [[Unity]] game engine. It is a list of all assets used in a game.


The name of the file can be different in each game. Most often it is <code>catalog_data.json</code>, but other options like <code>catalog_catalog.json</code> have also been found. The suffix (like <code>_data</code> or <code>_catalog</code>) can be chosen by the game developer, and some games can even have multiple content catalogs with different suffixes.
The name of the file can be different in each game. Most often it is <code>catalog_data.json</code>, but other options like <code>catalog_catalog.json</code> have also been found. The suffix (like <code>data</code> or <code>catalog</code>) can be chosen by the game developer, and some games can even have multiple content catalogs with different suffixes.


In [[Unity]], the contents of the <code>catalog.json</code> file can be accessed through the [https://docs.unity3d.com/Packages/com.unity.addressables@1.19/api/UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData.html ContentCatalogData] class.
In [[Unity]], the contents of the <code>catalog.json</code> file can be accessed through the [https://docs.unity3d.com/Packages/com.unity.addressables@1.19/api/UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData.html ContentCatalogData] class.