Method CreateCatalogLocationWithHashDependencies
CreateCatalogLocationWithHashDependencies<T>(string)
Given a location path that points to a remote content catalog, create a location with the assumed dependencies that point to remote, and local, hash files respectively. The first dependency, remote, assumes that the .hash file is located beside the provided location of the .json catalog file. The second dependency, local, points to a location inside the Addressables local cache data folder. The Addressables local cache data folder is meant for content catalogs and is not the same cache location for AssetBundles.
Declaration
public static ResourceLocationBase CreateCatalogLocationWithHashDependencies<T>(string remoteCatalogPath) where T : IResourceProvider
Parameters
Type | Name | Description |
---|---|---|
string | remoteCatalogPath | The path of the remote content catalog. |
Returns
Type | Description |
---|---|
ResourceLocationBase | A resource location with exactly 2 dependencies. The first points to the assumed remote hash file location. The second points to the local hash file location. |
Type Parameters
Name | Description |
---|---|
T | The type of provider you want to load your given catalog. By default, Addressables uses the ContentCatalogProvider. |
CreateCatalogLocationWithHashDependencies<T>(IResourceLocation)
Given a location path that points to a remote content catalog, create a location with the assumed dependencies that point to remote, and local, hash files respectively. The first dependency, remote, assumes that the .hash file is located beside the provided location of the .json catalog file. The second dependency, local, points to a location inside the Addressables local cache data folder. The Addressables local cache data folder is meant for content catalogs and is not the same cache location for AssetBundles.
Declaration
public static ResourceLocationBase CreateCatalogLocationWithHashDependencies<T>(IResourceLocation remoteCatalogLocation) where T : IResourceProvider
Parameters
Type | Name | Description |
---|---|---|
IResourceLocation | remoteCatalogLocation | A resource location that points to the remote content catalog file. |
Returns
Type | Description |
---|---|
ResourceLocationBase | A resource location with exactly 2 dependencies. The first points to the assumed remote hash file location. The second points to the local hash file location. |
Type Parameters
Name | Description |
---|---|
T | The type of provider you want to load your given catalog. By default, Addressables uses the ContentCatalogProvider. |
CreateCatalogLocationWithHashDependencies<T>(string, string)
Given a location path that points to a remote content catalog and its corresponding remote hash file, create a location with the dependencies that point to remote, and local, hash files respectively. The first dependency, remote, uses the provided remote hash location. The second dependency, local, points to a location inside the Addressables local cache data folder. The Addressables local cache data folder is meant for content catalogs and is not the same cache location for AssetBundles.
Declaration
public static ResourceLocationBase CreateCatalogLocationWithHashDependencies<T>(string remoteCatalogPath, string remoteHashPath) where T : IResourceProvider
Parameters
Type | Name | Description |
---|---|---|
string | remoteCatalogPath | The path of the remote content catalog. |
string | remoteHashPath | The path of the remote catalog .hash file. |
Returns
Type | Description |
---|---|
ResourceLocationBase | A resource location with exactly 2 dependencies. The first points to the assumed remote hash file location. The second points to the local hash file location. |
Type Parameters
Name | Description |
---|---|
T | The type of provider you want to load your given catalog. By default, Addressables uses the ContentCatalogProvider. |